简体   繁体   English

yo meanjs错误-错误:命令失败:/ bin / sh -c cd test7 && npm安装

[英]yo meanjs error - Error: Command failed: /bin/sh -c cd test7 && npm install

i am trying to learn nodejs and want to create a boiler plate code for me to make further modification. 我正在尝试学习nodejs,并希望为我创建样板代码以进行进一步的修改。 I am using yeomen and meanjs for the same but I am facing following issue: 我正在使用yeomen和meanjs,但我面临以下问题:

command -> yo meanjs 命令-> yo meanjs

error -> 错误->

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.

Please note that this is subset of the error. 请注意,这是错误的子集。

Please let me know what am i missing. 请让我知道我在想什么。 Thanks for your time. 谢谢你的时间。

"node":">=0.8 <=0.12 || >=1 <=2" “ node”:“> = 0.8 <= 0.12 ||> = 1 <= 2”

Seems that you need to downgrade your NodeJs Version in between 0.8 ~ 0.12 Also The Npm 似乎您需要在0.8〜0.12之间降级NodeJs版本

Yes sorry for the delay. 是的,对不起您的延迟。 Either you have to downgrade or download a zip version from github which worked for me. 您必须降级或从github下载适用于我的zip版本。 I deleted what I don't want and it worked fine for me. 我删除了我不想要的内容,对我来说效果很好。 Yo generator with new nose version for mean. 带有新机头版本的Yo发电机表示平均值。 Js is work in progress as far as I know. 据我所知,Js正在开发中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Npm“ yo”命令错误 - Npm “yo” command error Mac 错误:/bin/sh:npm:找不到命令 - Mac error: /bin/sh: npm: command not found Dockerfile ..... ✖ 错误:命令失败:/bin/sh -c autoreconf -ivf /bin/sh: autoreconf: not found - Dockerfile ..... ✖ Error: Command failed: /bin/sh -c autoreconf -ivf /bin/sh: autoreconf: not found npm install错误-在meanjs@0.3.3安装后脚本失败 - error with npm install - Failed at the meanjs@0.3.3 postinstall script standard_init_linux.go:190:exec用户进程导致“ exec格式错误”命令&#39;/ bin / sh -c npm install&#39;返回了非零代码:1 - standard_init_linux.go:190: exec user process caused “exec format error” The command '/bin/sh -c npm install' returned a non-zero code: 1 npm install -g yo隧道套接字错误 - npm install -g yo tunneling socket error yo hubot命令后的npm协议错误 - npm protocol error after yo hubot command NPM 安装在 docker 容器中失败并返回“命令'/bin/sh -c npm install'返回非零代码:1” - NPM install in docker container fails and returns “The command '/bin/sh -c npm install' returned a non-zero code: 1” 命令“/bin/sh -c npm install --silent”返回非零代码:254 - The command '/bin/sh -c npm install --silent' returned a non-zero code: 254 命令“/bin/sh -c npm install”返回一个非零代码:1 - The command '/bin/sh -c npm install' returned a non-zero code: 1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM