gpt4 book ai didi

node.js - 哟意味着错误 - 错误 : Command failed:/bin/sh -c cd test7 && npm install

转载 作者:太空宇宙 更新时间:2023-11-03 22:33:47 24 4
gpt4 key购买 nike

我正在尝试学习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 ":">=0.8 <=0.12 || >=1 <=2"

看来你需要将 NodeJs 版本降级到 0.8 ~ 0.12 之间还有 Npm

关于node.js - 哟意味着错误 - 错误 : Command failed:/bin/sh -c cd test7 && npm install,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32980197/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com