我試圖安裝移動第一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。我也關閉了防火牆並重新啓動了我正在使用的路由器。
看來,有一個選項可以離線安裝它:https://mobilefirstplatform.ibmcloud.com/blog/2016/03/31/howto-set-up-an-offline-ibm-mobilefirst-8-0 -development-environment/ 請試試這個。 –