【发布时间】:2014-02-19 21:46:02
【问题描述】:
我已经在 azure 云中创建了虚拟机。然后我用 msi 安装 64 位 nodejs。 我正在尝试在 powershell 中运行节点 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
【问题讨论】:
-
你的 PATH 变量中是否设置了 Node.js 文件夹?
-
我在azure服务器中没有找到我的电脑图标或开始按钮,所以我没有设置PATH。
-
我假设您使用的是 Windows Server 2012。您将在控制面板中找到所有内容。如果您想使用 shell,请关注 @Zugwalt 的帖子。