【发布时间】:2016-08-16 14:26:46
【问题描述】:
我正在尝试安装 nativescript,我是新手,所以我将不胜感激。 首先,我正确安装了它,但之后我在 nativescript 网站上看到了一个用于高级安装的页面,所以我玩弄了它..现在我无法运行命令 tns 并且无法卸载,无法安装.. 这是我得到的错误:
注意:我也将我的 nodejs 更新到了最新版本,但是当我尝试运行时无法更新 npm:npm install npm -g 我得到了如下错误:
我也试过重启电脑,但没有帮助。
我卸载了节点,npm 然后再次安装它们.. 现在我收到此错误:
ERR! network getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
ERR! network This is most likely not a problem with npm itself
ERR! network and is related to network connectivity.
ERR! network In most cases you are behind a proxy or have bad network settings.
ERR! network
ERR! network If you are behind a proxy, please make sure that the
ERR! network 'proxy' config is set properly. See: 'npm help config'
ERR! Please include the following file with any support request:
ERR! C:\Users\Home\npm-debug.log
【问题讨论】:
-
在您尝试卸载 lnativescript 的第一个屏幕上...在最后一个屏幕上您正在运行错误的命令 - 您应该运行:npm install -g nativescript(而不是 npm install npm)
标签: node.js npm nativescript