安装Node.js windows 10 64bits时出错

时间:2018-06-14 02:37:01

标签: node.js angular-cli nvm

我安装了Node.js 5x并下载并启动Node.js 8x安装,向导没有安装和回滚所有操作,现在我没有安装任何NodeJs和npm。

  • 我的窗口是10 64位
  • 节点版本为8.11.3-x64

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

我制作了路径并且错误仍然存​​在

enter image description here

我为每个人创建文件夹并给予完全控制权。 enter image description here

enter image description here

我没有右键单击此处作为Adm选项运行 enter image description here

我打开并安装/作为CMD Adm模式 enter image description here

enter image description here

choco在安装后没有运行 enter image description here

NVM enter image description here

enter image description here

1 nvm(好的,非常有趣),2我安装了节点8.11.0(ok),3但文件夹node_modules为空(好吗?),{{ 3}}所以我用nvm安装了节点6(ok)。 4我设置为在nvm(ok)中使用节点8.11.0。 5我试图运行" npm install -g @ angular / cli"我得到错误6我在安装节点6时发现了angular_cli(步骤7),我尝试导航到文件夹并运行" npm install -g @ angular / cli"再次,我得到别人的错误。你现在可能我做错了吗? 4

enter image description here

3 个答案:

答案 0 :(得分:0)

您可以从命令提示符设置路径,它将起作用。用它来设置路径:

set PATH=%PATH%;C:\Program Files\Nodejs

答案 1 :(得分:0)

Node 8.11.3遇到相同的问题。仅通过从Windows Binary(.zip)安装Node来为我解决

答案 2 :(得分:-1)

只需添加:

E:\Projects\NodeJsTestings\Library\AngularApp> ng g c suggestion

到系统属性上环境变量的“用户变量”部分的Path变量的末尾。

然后,重新打开命令提示符并键入

NPM 这应该有用。

以下是供参考的图片

enter image description here

相关问题