使用 phonegap/cordova 时,“节点"未被识别为内部或外部命令、可运行的程序或批处理文件 [英] 'node' is not recognized as an internal or an external command, operable program or batch file while using phonegap/cordova

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

问题描述

我正在使用 phonegap/cordova.

I am using phonegap/cordova.

一切都安装了propelry,即cordova、phonegap、ant、sdk、jdk.

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"

推荐答案

在Windows下,需要将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 odejs;. 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 时,“节点"未被识别为内部或外部命令、可运行的程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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