解决npm err windows_nt 6.1.7601问题
在使用npm进行nodejs版本更新的时候,也就是npm install -g n 遇到如下问题:如图:
网上附录解决办法:
npm config set proxy null(npm config delete proxy)
npm config set https-proxy null
npm config set strict-ssl false
然后再安装cnmp
npm install -g cnpm –registry=https://registry.npm.taobao.org
然而并没有解决我遇到的问题。在看到一篇博客,说自己可能安装错了版本,我电脑是64位的我可能安装成了32位的,带着试试的方法,就重新安装了nodejs,然而问题并没有解决,又出来了一个新的问题:
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n@2.1.8: wanted {"os":"!win32","arch":"
any"} (current: {"os":"win32","arch":"ia32"})
npm ERR! notsup Valid OS: !win32
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: ia32
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\npm-cache\_logs\2017-09-24T14_44_27_
530Z-debug.log
在进行百度的时候(直接把上面的问题粘到百度上),这个问题才是因为版本不兼容导致的,所以无奈又换成了64位的,然后无意间看到了一篇博客,意思就是如上这个问题是他说在进行安装也就是
npm install -g n 的时候查看了下输出日志,日子内容为:
44 error Windows_NT 6.1.7601
45 error argv "E:\\0Develop\\nodejs\\nodejs\\node.exe" "E:\\0Develop\\nodejs\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "n"
46 error node v4.2.3
47 error npm v2.14.7
48 error code EBADPLATFORM49 error notsup Unsupported
49 error notsup Not compatible with your operating system or architecture: n@2.1.449 error notsup Valid OS: !win3249 error notsup Valid Arch: any49 error notsup Actual OS: win3249 error notsup Actual Arch: x64
50 verbose exit [ 1, true ]
然后解决办法是:
npm install -g n --force
加上-force就可以了,我记录这个过程,一方面是记录错误的解决方法,另一方面是,我们对待问题的方法,比如这个人查看了日志,也许对于像我们这样
的小白来说,查看日志太过于难为自己了,但是,难我们终究要去学习,总不能一辈子都是在敲着普通的代码吧,比如我以前在看日志的时候,就会吧日志给
拷贝出来,然后查找关键字:例如,cause by等关键词,查找到了,能看懂最好,看不懂,就谷歌翻译下,翻译后还是看不懂或者找不到问题的来源那就直接把问题
放到百度里面找,这样自己找问题才有针对性。以往以上的分享能给读到的人一些提示吧。
解决npm err windows_nt 6.1.7601问题相关推荐
- 解决npm ERR! Unexpected end of JSON input while parsing near...的方法
今天在创建项目的时候,发现一直创建不成功,安装项目依赖的时候报错:npm ERR! Unexpected end of JSON input while parsing near- 具体报错详情: 经 ...
- 解决npm ERR! Unexpected end of JSON input while parsing near的方法汇总
这两天执行 npm install 时会报错误: npm ERR! Unexpected end of JSON input while parsing near 这个错误的解决方法有以下几种: 1. ...
- 解决npm ERR! Unexpected end of JSON input while parsing near问题
之前在用node.js下art-template的时候发现报了错,就是npm ERR! Unexpected end of JSON input while parsing near这个错误,因为错误 ...
- [踩坑解决]npm ERR! gyp info it worked if it ends with oknpm ERR! gyp verb cli [
项目场景: 今天从GitHub上拉了一个vue前端项目,在进行npm install的时候给我报了一大堆错误. 原因分析: 可能是因为缺了node-sass的包.下面请看我的分析. 根据一些博客,不管 ...
- 解决npm ERR gyp ERR
npm ERR! gyp ERR! node-gyp -v v3.8.0 npm config set sass_binary_site=https://npm.taobao.org/mirrors/ ...
- 解决npm ERR! JSON.parse Failed to parse json
npm ERR! code EJSONPARSE npm ERR! JSON.parse Failed to parse json 问题出现形式如下: 错误原因是:package.json文件的格式问 ...
- npm install 报错 ERR! gyp ERR! cwd D:\workspace\node_modules\node-sass错误解决/npm ERR! gyp verb `which
一.问题描述: npm install 报错 ERR! gyp ERR! cwd D:\workspace\node_modules\node-sass 二.可能原因 nodejs与sass版本不匹配 ...
- 解决npm ERR! code ENOENT
又是第一次用写东西有点紧张O(∩_∩)O哈哈~ 早上在进行npm install 是全屏飘红,臣有点惶恐,从上到下开始看log,尽管英语水平4.5级,面对这常见的单词还是可以猜出来的 通看一遍发现错误 ...
- npm ERR! Windows_NT 10.0.10586
安装vue脚手架时候一直失败,如图: npm cache clean 管理员下安装: 快捷键 win +x , 按A进入: 转载于:https://www.cnblogs.com/leaf930814 ...
最新文章
- 位操作符:位与、|位或、^异或、~求反、左移位、带符号右移位、无符号右移位...
- c语言程序-hello world-运行原理简介
- 电气:6机30节点经济调度(考虑负荷平衡、线路容量、斜坡约束)代码实现
- ARM平台YUV转RGB888(转)
- CodeForces - 1295C Obtain The String(dp预处理+贪心)
- Servelt中的ServletContext对象
- php测试插入,php – 使用Symfony测试数据库插入
- 小米bl未解锁变砖了如何刷机_如何安装MIUI 10
- 【Spring】1、Spring 中的监听器 Listener
- 百叶窗式的幻灯片切换效果原理
- VC++6.0环境下调试c语言代码的方法和步骤_附图
- SQL 个人所学目录
- python实现循环赛日程表问题的算法_循环赛日程表问题
- 怎么知道局域网内其他设备的IP
- itextpdf5.x实现合同签署盖章预览功能
- [js]javascript实现多个json对象及列表的美化,容错非法json
- linux安装各种系统插件
- 广播风暴产生的原因及处理!
- 12.FTP协议的简述及FTP的工作过程是什么?
- 【Linux系统入侵】——SSH远程登录