Node_Path NPM 安装 yeoman Atom
Node_Path NPM installing yeoman Atom
尝试安装 Yeoman 时出现以下错误,我的节点路径设置正确。
我搜索了注册表,但不知道 npm 从哪里获取路径?
运行Windows 7
错误
Yeoman Doctor Running sanity checks on your system
√ 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
[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
[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"
好吧各种问题,看来是升级node可能有点关系。我最终做的是卸载并删除所有节点和 npm 相关文件和环境变量。重新安装并再次运行,看看这个 post 与我的问题类似。
https://github.com/npm/npm/issues/8737
尝试安装 Yeoman 时出现以下错误,我的节点路径设置正确。
我搜索了注册表,但不知道 npm 从哪里获取路径?
运行Windows 7
错误
Yeoman Doctor Running sanity checks on your system
√ 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
[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
[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"
好吧各种问题,看来是升级node可能有点关系。我最终做的是卸载并删除所有节点和 npm 相关文件和环境变量。重新安装并再次运行,看看这个 post 与我的问题类似。 https://github.com/npm/npm/issues/8737