" CALL" C:\ Program Files \ nodejs \\ node.exe"错误 [英] "CALL "C:\Program Files\nodejs\\node.exe" Error

查看:97
本文介绍了" CALL" C:\ Program Files \ nodejs \\ node.exe"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试安装节点js并安装浏览器同步

I have been trying insall node js and install browser sync

C:\Users\Aly>npm install -g browser-sync
'CALL "C:\Program Files (x86)\nodejs\\node.exe" "C:\Program Files `(x86)\nodejs\\`
node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command,operable program or batch file.

即使我想知道我的node js版本,也会出现相同的错误,然后显示随后的版本

Even if i want to know my node js version , the same error appear and then the version shown after that

C:\Users\Aly>npm --version
'CALL "C:\Program Files (x86)\nodejs\\node.exe" "C:\Program Files `(x86)\nodejs\\`
node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command,operable program or batch file.
3.10.9

Windows 10

Windows 10

非常感谢

推荐答案

我只是花了很长时间来解决这个问题.我不确定如何设置(也许在安装过程中),但是我更改了系统变量:

I just spend way to long with this issue. I'm not sure how it got set, perhaps during an install, but I changed a System Variable:

名称:ComSpec值:%SystemRoot%\ system32 \ cmd.exe;前缀= C:\ Program Files(x86)\ nodejs \ node.exe

Name: ComSpec Value: %SystemRoot%\system32\cmd.exe;prefix=C:\Program Files (x86)\nodejs\node.exe

对此:

名称:ComSpec值:%SystemRoot%\ system32 \ cmd.exe

Name: ComSpec Value: %SystemRoot%\system32\cmd.exe

然后重新启动系统,问题就消失了.

And restarted my system and the issue was gone.

这篇关于" CALL" C:\ Program Files \ nodejs \\ node.exe"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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