2015-10-06 43 views
2

我正在嘗試學習nodejs並希望爲我創建一個鍋爐板代碼以進行進一步的修改。我使用同樣的自耕農和meanjs但我現在面臨以下問題:喲meanjs錯誤 - 錯誤:命令失敗:/ bin/sh -c cd test7 && npm install

命令 - >喲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 [email protected] No repository field. 
npm WARN engine [email protected]: wanted: {"node":">=0.8 <=0.12 || >=1 <=2"} (current: {"node":"4.0.0","npm":"2.14.2"}) 
npm WARN peerDependencies The peer dependency [email protected] 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. 

請注意,這是錯誤的子集。

請讓我知道我缺少什麼。 謝謝你的時間。

+0

你知道了嗎? –

+0

哪個節點版本和操作系統你在使用?對於我在OSX 10.11上使用Node v0.12.7。 –

回答

0

「節點」: 「> = 0.8 < = 0.12 ||> = 1 < = 2」

看來你需要降級版本的NodeJS之間0.8〜0.12 也故宮

+0

看起來組件之間的版本對齊可能是MEAN堆棧中的高維護嗎?這是對未來事物的嘗試嗎? – Lori

0

對於延誤抱歉。要麼你必須降級或從github下載zip版本,這對我來說很有用。我刪除了我不想要的東西,它對我來說工作得很好。帶有新鼻子版本的Yo發電機。就我所知,Js正在進行中。

相關問題