2017-05-23 73 views
0

我与老打字稿版本1.8 Vs2013我也只是新的打字稿版本2.3NPM启动命令不工作

安装VS 2015年,而从我的项目路径试图NPM启动命令它不工作得到下述错误。

npm ERR! Windows_NT 6.1.7601 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" 
npm ERR! node v6.10.3 
npm ERR! npm v3.10.10 
npm ERR! code ENOTFOUND 
npm ERR! errno ENOTFOUND 
npm ERR! syscall getaddrinfo 
npm ERR! network getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 
npm ERR! network This is most likely not a problem with npm itself 
npm ERR! network and is related to network connectivity. 
npm ERR! network In most cases you are behind a proxy or have bad network settings. 
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the 
npm ERR! network 'proxy' config is set properly. See: 'npm help config' 
npm ERR! Please include the following file with any support request: 
npm ERR!  C:\Project\Angular2Demo\Angular2Demo\npm-debug.log 

任何想法? 在此先感谢

+0

'npm ERR!网络在大多数情况下,您在代理之后或者网络设置不良。“您是否在代理之后?你可以在互联网上(谷歌)ping什么? – litelite

+0

是的,我能ping通谷歌 – cshah

+0

我也试过npm uninstall -g angular-cli npm -g cache clean npm install -g -f angular-cli ..但是执行最后一个命令时npm install -g -f angular- CLI。我越来越erros – cshah

回答

0

我会说这是要么在文件夹中的权限问题(尝试chmod 777 *从文件夹内)或系统内的本地变量的问题,这是指向您以前的TS版本。尝试一下,让我们回到信息。

+0

嗨,我可以看到三个tyecript文件夹,由于VS版本安装在我的电脑上。当我检查环境变量“路径”我不能看到任何有关NPM或类型脚本? – cshah

+0

如果您打算使用npm start命令,我建议您从npm全局安装Typescript,然后将变量路径更改为该版本。你的问题将会消失 –

+0

我也尝试了npm uninstall -g angular-cli npm -g cache clean npm install -g -f angular-cli..but在执行最后一个命令时npm install -g -f angular-cli。我越来越erros – cshah