安装 mfpdev-cli 时出错

Error installing mfpdev-cli

我正在尝试安装移动优先 CLI,使用了这个命令:npm install -g mfpdev-cli

但是我遇到了错误。我将 npm 降级到 3.10.6,因为我发现最新版本可能存在问题。

错误:

npm install -g mfpdev-cli

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/elementtree/-/elementtree-0.1.6.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/npmlog/-/npmlog-2.0.2.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/glob/-/glob-7.0.3.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/q/-/q-1.4.1.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/verror/-/verror-1.6.1.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/findup-sync/-/findup-sync-0.3.0.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/ibm-strings/-/ibm-strings-0.1.4.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/underscore/-/underscore-1.8.3.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/glob/-/glob-7.0.3.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/elementtree/-/elementtree-0.1.6.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/npmlog/-/npmlog-2.0.2.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/q/-/q-1.4.1.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/ibm-strings/-/ibm-strings-0.1.4.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/findup-sync/-/findup-sync-0.3.0.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/verror/-/verror-1.6.1.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/underscore/-/underscore-1.8.3.tgz

npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 
visustar.francelab.fr.ibm.com visustar.francelab.fr.ibm.com:8081

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/elementtree/-/elementtree-0.1.6.tgz

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-all/glob/-/glob-7.0.3.tgz

npm ERR! fetch failed             

http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/npmlog/-/npmlog-2.0.2.tgz

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/findup-sync/-/findup-sync-0.3.0.tgz

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/ibm-strings/-/ibm-strings-0.1.4.tgz

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/q/-/q-1.4.1.tgz

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/verror/-/verror-1.6.1.tgz

npm ERR! fetch failed 
http://visustar.francelab.fr.ibm.com:8081/nexus/content/groups/mobile-npm-
all/underscore/-/underscore-1.8.3.tgz

npm ERR! Darwin 15.6.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "mfpdev-
cli"

npm ERR! node v6.6.0

npm ERR! npm  v3.10.6

npm ERR! code ENOTFOUND

npm ERR! errno ENOTFOUND

npm ERR! syscall getaddrinfo


npm ERR! network getaddrinfo ENOTFOUND visustar.francelab.fr.ibm.com 
visustar.francelab.fr.ibm.com:8081

npm ERR! network This is most likely not a problem with npm itself

npm ERR! network and is related to network connectivity.

npm ERR! network In most cases you are behind a proxy or have bad network 
settings.

npm ERR! network 

npm ERR! network If you are behind a proxy, please make sure that the

npm ERR! network 'proxy' config is set properly.  See: 'npm help config'


npm ERR! Please include the following file with any support request:

npm ERR!     /Users/kimnicolemontano/Documents/IBM Mobile First Learning/npm-debug.log

我使用的是 macOSX El Capitan Macbook Pro - 10.11.6。我还关闭了防火墙并重新启动了我正在使用的路由器。

更新:已向 NPM 发布修复程序。

这是 MobileFirst CLI 和 npm 版本 3.10.x 的一个已知问题。降级到 3.9.x 或 3.8.x 即可安装成功。