在使用phonegap / cordova时,“node”不被识别为内部或外部命令,可操作的程序或批处理文件 [英] 'node' is not recognized as an internal or an external command, operable program or batch file while using phonegap/cordova

查看:381
本文介绍了在使用phonegap / cordova时,“node”不被识别为内部或外部命令,可操作的程序或批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用phonegap / cordova。 Everthing安装propelry即cordova,phonegap,蚂蚁,sdk,jdk。但现在它说节点不被认为是一个内部或外部命令请帮助!

I am using phonegap/cordova. Everthing is installed propelry i.e cordova, phonegap, ant,sdk,jdk. But now it says "node is not recogzed as an internal or external command" Please help!

推荐答案

将node.js文件夹路径设置为系统变量或用户变量。

In Windows, you need to set node.js folder path into system variables or user variables.

1)打开控制面板 - >系统和安全 - >系统 - >高级系统设置 - >环境变量

1) open Control Panel -> System and Security -> System -> Advanced System Settings -> Environment Variables

2)在用户变量或系统变量中找到变量 PATH 并添加node.js文件夹路径作为值。通常是 C:\Program Files \\\
odejs;
。如果变量不存在,请创建它。

2) in "User variables" or "System variables" find variable PATH and add node.js folder path as value. Usually it is C:\Program Files\nodejs;. If variable doesn't exists, create it.

3)重新启动IDE或计算机。

3) Restart your IDE or computer.

有用的还添加npm和Git路径作为变量,用分号分隔。

It is useful add also "npm" and "Git" paths as variable, separated by semicolon.

这篇关于在使用phonegap / cordova时,“node”不被识别为内部或外部命令,可操作的程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆