简体   繁体   English

Node_Path NPM安装yeoman Atom

[英]Node_Path NPM installing yeoman Atom

Trying to install Yeoman, I'm getting the error below, my Node Path is correctly set. 尝试安装Yeoman,出现以下错误,我的节点路径设置正确。

I searched the registry but don't know where npm is picking up the path ? 我搜索了注册表,但不知道npm在哪里选择路径? Running Windows 7 运行Windows 7

error 错误

Yeoman Doctor Running sanity checks on your system Yeoman Doctor在您的系统上运行健全性检查

√ Global configuration file is valid √ Node.js version √ No .bowerrc file in home directory √ No .yo-rc.json file in home directory √ npm version x NODE_PATH matches the npm root npm global root value is not in your NODE_PATH √全局配置文件有效√Node.js版本√主目录中没有.bowerrc文件√主目录中没有.yo-rc.json文件√npm版本x NODE_PATH与npm根匹配npm全局根值不在您的NODE_PATH中

[Info] NODE_PATH = C:\\Users\\Francois\\AppData\\Local\\atom\\app-1.0.7\\resources\\app.asar\\ exports npm root = C:\\Users\\Francois\\AppData\\Roaming\\npm\\node_modules [信息] NODE_PATH = C:\\ Users \\ Francois \\ AppData \\ Local \\ atom \\ app-1.0.7 \\ resources \\ app.asar \\ export npm root = C:\\ Users \\ Francois \\ AppData \\ Roaming \\ npm \\ node_modules

[Fix] Append the npm root value to your NODE_PATH variable If you're using cmd.exe, run this command to fix the issue: setx NODE_PATH "%NODE_PATH%;C:\\Users\\Francois\\AppData\\Roaming\\npm\\node_modul es" [修复]将npm根值附加到您的NODE_PATH变量中如果使用cmd.exe,请运行以下命令来解决此问题:setx NODE_PATH“%NODE_PATH%; C:\\ Users \\ Francois \\ AppData \\ Roaming \\ npm \\ node_modul es”

Ok various issues, it seems that upgrading node might have something to do with it. 好的,各种各样的问题似乎都与升级节点有关。 What I ended up doing was to uninstall and delete all node and npm related files and environmental variables. 我最终要做的是卸载并删除所有与节点和npm相关的文件以及环境变量。 Re-install and its working again, take a look at this post was similiar to my issues. 重新安装并再次正常工作,看看这篇帖子与我的问题相似。 https://github.com/npm/npm/issues/8737 https://github.com/npm/npm/issues/8737

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

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