npm ERR!

FAILED! => {"changed": false, "cmd": "/usr/bin/npm install --registry https://registry.npm.taobao.org", 
"msg": "npm ERR! Linux 3.10.0-514.el7.x86_64\nnpm ERR! argv \"/usr/bin/node\" \"/usr/bin/npm\" \"install\" 
\"--registry\" \"https://registry.npm.taobao.org\"\nnpm ERR! node v6.12.2\nnpm ERR! npm  v3.10.10\nnpm ERR!
 code ENOTFOUND\nnpm ERR! errno ENOTFOUND\nnpm ERR! syscall getaddrinfo\n\nnpm ERR! network getaddrinfo 
 ENOTFOUND registry.npm.taobao.org registry.npm.taobao.org:443\nnpm ERR! network This is most likely not a 
 problem with npm itself\nnpm ERR! network and is related to network connectivity.\nnpm ERR! network In 
 most cases you are behind a proxy or have bad network settings.\nnpm ERR! network \nnpm ERR! network 
 If you are behind a proxy, please make sure that the\nnpm ERR! network 'proxy' config is set properly.
 See: 'npm help config'\n\nnpm ERR! Please include the following file with any support request:\nnpm ERR!

大概意思是:你的系统运行环境里可能有代理的形式上网。

解决办法:

设置npm代理即可:

num代理设置

npm config set proxy http://用户名:密码@代理ip:端口号

npm config set https-proxy http://用户名:密码@代理ip:端口号

如果代理没有用户名密码:

npm config set proxy http://代理ip:端口号

npm config set https-proxy http://代理ip:端口号

当设置代理的时候,要去掉默认的npm:

npm config set proxy null

原文地址:http://blog.51cto.com/506554897/2068159

时间: 2024-11-10 00:18:04

npm ERR!的相关文章

cnmp安装失败,报错npm ERR! enoent ENOENT: no such file or directory,

1.cnmp安装失败 2.提示如下: bogon:node_modules liangjingming$ sudo npm install cnpm -g --registry=https://registry.npm.taobao.org Password: /usr/local/lib └── (empty) npm ERR! Darwin 16.4.0 npm ERR! argv "/usr/local/Cellar/node/7.8.0/bin/node" "/usr

报npm ERR! fetch failed https://registry.npmjs.org/grunt-contrib-uglify/-/grunt-c错误

D:\grunttest>npm installnpm WARN package.json [email protected] No repository field.npm WARN package.json [email protected] No README datanpm ERR! fetch failed https://registry.npmjs.org/grunt-contrib-uglify/-/grunt-cntrib-uglify-0.2.7.tgznpm ERR! fe

解决npm安装模块时 npm err! registry error parsing json

最近还真是点背,从yeoman生成一个react项目或是github上克隆一个项目,在npm install的时候, 一直报npm err! registry error parsing json(就是一行红色的,因为解决了,图没了,也懒的复现了) 我的解决方式是 因为是错误中有registry,所以就应该是registry 的问题 因为我的电脑有vpn 而且网速3m/s,所以网络问题is no 因为我设置了淘宝镜像吗, 先来npm config list一下试试 哦原来是我安装了淘宝镜像啊,

"npm ERR! Error: EPERM: operation not permitted"问题解决

在基于macaca进行自动化测试的时候,遇到如下问题: E:\AutoTest\Macaca\LocalTEST\macaca-test-sample\macaca-test>macaca doctor   Node.js checklist:   node env: C:\Program Files\nodejs\node.exe  node version: v6.3.0   Android checklist:   JAVA version is `1.8.0_91`  JAVA_HOME

tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:56281 npm ERR! network This is most likely not a problem with npm itself npm ERR! network and is related to network

tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:56281npm ERR! network This is most likely not a problem with npm itselfnpm ERR! network and is related to network connectivity.npm ERR! network In most cases you are behi

npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法

npm ERR! path E:\SouthernPowerGridProject\web_project\AutoOPS\autoops\node_modules\fsevents\node_modules\dashdash\node_modulesnpm ERR! code EPERMnpm ERR! errno -4048npm ERR! syscall scandirnpm ERR! Error: EPERM: operation not permitted, scandir 'E:\S

npm ERR! path: '/usr/local/lib/node_modules/npm/node_modules/cacache/node_modules/ssri' }

在安装appium 或者升级npm的过程中会遇到这个问题.出错时的代码提示如下: npm ERR! path /usr/local/lib/node_modules/npm/node_modules/cacache/node_modules/ssri npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/loca

解决 windows npm ERR! asyncWrite is not a function 问题

重装过node,cmd中 node -v,npm -v 提示版本都没有问题,但是在vue项目中npm i 的时候出现了npm ERR! asyncWrite is not a function 问题,网上众说纷纭,有的说node的版本和npm的版本不兼容问题,试过各种方法,还是在stack Overflow中找到了解决方法,有个外国网友是这样回答的: Solution for windows platform Uninstall Node Delete folder from programfi

解决npm ERR!

一:[Unexpected end of JSON input while parsing near]报错 最近的vue项目中在执行 npm install 时会报错误: npm ERR! Unexpected end of JSON input while parsing near 这个错误的解决方法有以下几种: 1.删掉package.lock.json 2.清除cache npm cache clean --force 3.进入下面这个文件夹清除cache路径:C:Users PCAppD