简体   繁体   English

Windows上的节点安装 - 无法从命令提示符运行NPM

[英]Node installation on Windows - Can't run NPM from command prompt

I have installed Node on my Windows 7 laptop (v6.9.1) and it is working but Node Package Manager will not run when I execute the npm.cmd. 我已经在我的Windows 7笔记本电脑上安装了Node(v6.9.1)并且它正在运行,但是当我执行npm.cmd时,Node Package Manager将无法运行。 I have verified the environment variables and both the nodejs and npm directories are in my PATH. 我已经验证了环境变量,nodejs和npm目录都在我的PATH中。 The error I receive is 我收到的错误是

C:\Program Files\nodejs>npm
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
/F was unexpected at this time.

Any help would be appreciated. 任何帮助,将不胜感激。

Creating a new profile and reinstalling Node cleared up the issue. 创建新配置文件并重新安装节点可以解决问题。 Still not sure what the root cause of the issue was. 仍然不确定问题的根本原因是什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM