javascript - nodejs用代码更新版本出现问题
怪我咯
怪我咯 2017-04-11 09:46:22
[JavaScript讨论组]

我直接在命令行输入npm install -g n
一直报这种错误

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "n"
npm ERR! node v4.6.1
npm ERR! npm  v2.15.9
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: n@2.1.4
npm ERR! notsup Valid OS:    !win32
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   win32
npm ERR! notsup Actual Arch: x64

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\wuzh\npm-debug.log

求解???

怪我咯
怪我咯

走同样的路,发现不同的人生

全部回复(2)
迷茫

Unfortunately n is not supported on Windows yet. If you're able to make it work, send in a pull request!

n不支持win平台

黄舟

windows不支持用n来更新nodejs,需要重新下载新版的msi在原目录覆盖安装

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号