javascript - nodejs用代码更新版本出现问题
本文介绍了javascript - nodejs用代码更新版本出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
我直接在命令行输入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
求解???
解决方案
Unfortunately n is not supported on Windows yet. If you're able to make it work, send in a pull request!
n不支持win平台
这篇关于javascript - nodejs用代码更新版本出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文