2016-10-03 50 views
0

我試圖安裝移動第一CLI,使用這個命令:NPM安裝-g mfpdev-CLI錯誤安裝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的埃爾卡皮坦的MacBook Pro - 10.11.6。我也關閉了防火牆並重新啓動了我正在使用的路由器。

+0

看來,有一個選項可以離線安裝它:https://mobilefirstplatform.ibmcloud.com/blog/2016/03/31/howto-set-up-an-offline-ibm-mobilefirst-8-0 -development-environment/ 請試試這個。 –

回答

1

更新:修復已發佈到NPM。

這是MobileFirst CLI和npm 3.10.x版的已知問題。降級到3.9.x或3.8.x,安裝將成功通過。

+0

謝謝,我遵循離線安裝,它工作,雖然有一些調整。將接受這個答案。謝謝。 –

+1

要進行更新,最終必須在npm降級後刪除並重新添加cli。 'sudo npm uninstall -g mfpdev-cli && sudo npm install mfpdev-cli -g' – Cesar

+0

沒有必要。修正已於昨天發佈。正常安裝。 –