後更新我的NodeJS到最新版本我總是得到錯誤嘗試運行npm install
安裝包時:NPM拋出一個錯誤,更新後8的NodeJS
npm WARN registry Using stale data from http://registry.npmjs.org/ because the host is inaccessible -- are you offline?
npm WARN registry Using stale package data from http://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to http://registry.npmjs.org/escope failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:80
npm ERR! network This is a problem 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'
我沒有任何問題與我互聯網連接,我禁用路由到https:https://registry.npmjs.org,並用http代替 - 第一次安裝工作,並在開始後不工作。
節點版本8.2.1
NPM版本5.3.0
感謝您的幫助。
沒有 - 這不是它 - 我得到nuill當我得到 代理。謝謝 – Adidi
嘗試,npm配置設置註冊表http://registry.npmjs.org/。或者,檢查您的ISP或公司的防火牆/代理。 –