节点安装依赖项错误

时间:2015-04-17 11:58:21

标签: node.js npm

我有

node -v v0.12.2
npm -v 2.7.4 

npm config get prefix
d:\OpenServer\OpenServer\domains\Laravel5

我尝试使用npm install命令,我收到此错误

d:\OpenServer\OpenServer\domains\Laravel5>npm install                       
-                                                                           
> node-sass@2.1.1 install d:\OpenServer\OpenServer\domains\Laravel5\node_mod
> node scripts/install.js                                                   


npm ERR! Windows_NT 6.1.7601                                                
npm ERR! argv "d:\\OpenServer\\OpenServer\\domains\\Laravel5\\\\node.exe" "d
in\\npm-cli.js" "install"                                                   
npm ERR! node v0.12.2                                                       
npm ERR! npm  v2.7.4                                                        
npm ERR! code ELIFECYCLE                                                    

npm ERR! node-sass@2.1.1 install: `node scripts/install.js`                 
npm ERR! Exit status 1                                                      
npm ERR!                                                                    
npm ERR! Failed at the node-sass@2.1.1 install script 'node scripts/install.
npm ERR! This is most likely a problem with the node-sass package,          
npm ERR! not with npm itself.                                               
npm ERR! Tell the author that this fails on your system:                    
npm ERR!     node scripts/install.js                                        
npm ERR! You can get their info via:                                        
npm ERR!     npm owner ls node-sass                                         
npm ERR! There is likely additional logging output above.                   

npm ERR! Please include the following file with any support request:        
npm ERR!     d:\OpenServer\OpenServer\domains\Laravel5\npm-debug.log        

d:\OpenServer\OpenServer\domains\Laravel5>    

2 个答案:

答案 0 :(得分:0)

这是什么意思,npm config get前缀d:\ OpenServer \ OpenServer \ domains \ Laravel5?

请尝试使用此命令并尝试,

npm config set registry https://registry.npmjs.org/

否则

npm config set registry http://registry.npmjs.org/

答案 1 :(得分:-1)

如果我理解你的问题,也许你可以清理npm package cache并再试一次〜

npm cache clean
相关问题