【问题标题】:yo meanjs error - Error: Command failed: /bin/sh -c cd test7 && npm installyo meanjs 错误 - 错误:命令失败:/bin/sh -c cd test7 && npm install
【发布时间】:2016-01-03 23:23:33
【问题描述】:

我正在尝试学习 nodejs,并想为我创建一个样板代码以进行进一步修改。我正在使用 yeomen 和 meanjs,但我面临以下问题:

命令 -> 哟意思

错误 ->

undefined
You're using the official MEAN.JS generator.
? What mean.js version would you like to generate? master
master
? In which folder would you like the project to be generated? This can be changed later. test7
Cloning the MEAN repo.......
? What would you like to call your application? MEAN
? How would you describe your application? Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js
? How would you describe your application in comma seperated key words? MongoDB, Express, AngularJS, Node.js
? What is your company/author name? 
? Would you like to generate the article example CRUD module? Yes
? Would you like to generate the chat example module? Yes
   create test7/package.json
   create test7/bower.json
   create test7/config/env/default.js
Running npm install for you....
This may take a couple minutes.
Error: Command failed: /bin/sh -c cd test7 && npm install
npm WARN package.json mean@0.0.0 No repository field.
npm WARN engine karma@0.12.37: wanted: {"node":">=0.8 <=0.12 || >=1 <=2"} (current: {"node":"4.0.0","npm":"2.14.2"})
npm WARN peerDependencies The peer dependency istanbul@0.x.x included from grunt-mocha-istanbul will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
../lib/kerberosgss.c:509:13: warning: implicit declaration of function 'gss_acquire_cred_impersonate_name' is invalid in C99 [-Wimplicit-function-declaration]
        maj_stat = gss_acquire_cred_impersonate_name(&min_stat,
                   ^
1 warning generated.
../lib/kerberosgss.c:509:13: warning: implicit declaration of function 'gss_acquire_cred_impersonate_name' is invalid in C99 [-Wimplicit-function-declaration]
        maj_stat = gss_acquire_cred_impersonate_name(&min_stat,
                   ^
1 warning generated.
../lib/kerberosgss.c:509:13: warning: implicit declaration of function 'gss_acquire_cred_impersonate_name' is invalid in C99 [-Wimplicit-function-declaration]
        maj_stat = gss_acquire_cred_impersonate_name(&min_stat,
                   ^
1 warning generated.

请注意,这是错误的子集。

请让我知道我错过了什么。 感谢您的宝贵时间。

【问题讨论】:

  • 你发现了吗?
  • 您使用的是哪个节点版本和操作系统?对我来说,使用 Node v0.12.7 在 OSX 10.11 上工作。

标签: node.js meanjs yo


【解决方案1】:

"节点":">=0.8 =1

似乎您需要在 0.8 ~ 0.12 之间降级您的 NodeJs 版本 还有Npm

【讨论】:

  • 看起来组件之间的版本对齐可能是 MEAN 堆栈中的高维护?这是对未来事物的一种体验吗?
【解决方案2】:

是的,抱歉耽搁了。您必须降级或从 github 下载对我有用的 zip 版本。我删除了我不想要的东西,它对我来说很好用。哟发电机与新的鼻子版本的意思。据我所知,Js 正在进行中。

【讨论】:

    猜你喜欢
    • 2016-05-17
    • 2019-05-24
    • 2022-01-15
    • 2023-01-15
    • 1970-01-01
    • 1970-01-01
    • 2021-07-29
    • 2019-05-10
    • 1970-01-01
    相关资源
    最近更新 更多