繁体   English   中英

Node.js天蓝色安装

[英]Node.js azure installation

我已经在Azure云中创建了虚拟机。 然后我用msi安装64位nodejs。 我正在尝试在Powershell中运行Node js。 我收到以下错误。

我怎样才能解决这个问题?

PS C:\Program Files\nodejs>
PS C:\Program Files\nodejs> node
node : The term 'node' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ node
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (node:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

默认情况下,节点可能未设置为位于执行路径中。 尝试将其添加到您的路径中

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

然后运行它:

node

如果可行 ,请继续使用setx将其永久添加到您的路径中。

暂无
暂无

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

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