npm ERR! fatal: Unable to look (port 9418) (Name or service not known)

阅读: 评论:0

npm ERR! fatal: Unable to look  (port 9418) (Name or service not known)

npm ERR! fatal: Unable to look (port 9418) (Name or service not known)

有一台Linux机器通过配置代理能够上网,但执行npm install的时候报如下错误:

npm WARN deprecated chokidar@2.1.5: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated runjs@4.4.2: This project has been renamed to 'tasksfile'. Install using 'npm install tasksfile' instead.
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated request@2.88.2: request has been deprecated, see 
npm WARN deprecated microcli@1.3.3: This project has been renamed to @pawelgalazka/cli . Install using @pawelgalazka/cli instead
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs for more info.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated microargs@1.1.2: This project has been renamed to @pawelgalazka/cli-args. Install using @pawelgalazka/cli-args instead
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated urix@0.1.0: Please see 
npm WARN deprecated resolve-url@0.2.1: 
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t git://github/adobe-webplatform/eve.git
npm ERR! 
npm ERR! fatal: Unable to look up github (port 9418) (Name or service not known)
npm ERR! 
npm ERR! exited with error code: 128npm ERR! A complete log of this run can be found in:
npm ERR!     /home/smart/.npm/_logs/2020-05-08T07_58_46_667Z-debug.log

解决方法:

[smart@dms-npm microservice_vue_demo]$  git config --global url."".insteadOf git://

再重新执行npm install,如果没有报ERR,出现类似如下信息,则说明成功。

nodejieba@2.4.1 install /home/smart/jenkins/workspace/microservice_vue_demo/node_modules/nodejieba
node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): .4.1/nodejieba-v2.4.
node-pre-gyp WARN Pre-built binaries not found for nodejieba@2.4.1 and node@12.16.3 (node-v72 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory /home/smart/jenkins/workspace/microservice_vue_demo/node_modules/nodejieba/build' CXX(target) Release/obj.target/nodejieba/lib/index.o CXX(target) Release/obj.target/nodejieba/lib/nodejieba.o SOLINK_MODULE(target) Release/obj.de COPY de make: Leaving directory/home/smart/jenkins/workspace/microservice_vue_demo/node_modules/nodejieba/build’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/babel-jest/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})

added 16 packages from 15 contributors in 47.883s

41 packages are looking for funding
run npm fund for details

本文发布于:2024-02-03 05:55:00,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170691090149087.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:fatal   Unable   npm   ERR   service
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23