【发布时间】:2023-03-06 11:35:01
【问题描述】:
我正在使用旧 Typescript 1.8 版的 Vs2013 我也刚刚安装了带有新打字稿版本 2.3 的 VS 2015
当我从我的项目路径尝试 npm start 命令时,它不起作用,给出以下错误。
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
有什么想法吗? 提前致谢
【问题讨论】:
-
npm ERR! network In most cases you are behind a proxy or have bad network settings.你在代理后面吗?你能在互联网上 ping 一些东西(谷歌)吗? -
是的,我可以 ping 谷歌
-
我也试过 npm uninstall -g angular-cli npm -g cache clean npm install -g -f angular-cli..但是在执行最后一个命令 npm install -g -f angular-cli 时。我出错了
-
npm config get proxy npm config get https-proxy - 谁能指导我这两个返回空值的命令?
标签: angularjs typescript npm npm-install