2017-05-23 74 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