无法在cmd窗口7上运行节点

时间:2014-11-26 08:47:15

标签: windows node.js

C:\ Windows \ system32> echo%path%

C:\ Program Files \ Apache Software Foundation \ apache-maven-3.2.2 \ bin&#34 ;; C:\ Windows \ S

ystem32; C:\ Program Files(x86)\ Heroku \ bin; C:\ Program Files \ nodejs \; C:\ Git \ cmd; C:

\ Git \ bin; C:\ Program Files \ apache-ant-1.9.4 \ bin; C:\ Program Files(x86)\ Android \ an

droid-studio \ sdk \ platform-tools; C:\ Program Files(x86)\ Android \ android-studio \ sd

k \ tools; C:\ Program Files \ Java \ jdk1.7.0_05 \ bin; C:\ Program Files \ Java \ jdk1.7.0_05 \

仓;

C:\ Windows \ System32下>节点

'节点'不被视为内部或外部命令, 可操作程序或批处理文件。

1 个答案:

答案 0 :(得分:0)

设置其安装目录路径

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

和模块位置路径

C:\Users\AAhad\AppData\Roaming\npm;

然后在控制台上运行节点

并检查一下:Node.js doesn't recognize system path?