npm install出錯Unexpected end of JSON解決方法

問題描述:

Unexpected end of JSON input while parsing near '…"npm

解決辦法:

設置倉庫爲淘寶的,而後清除緩存,從新下載依賴包緩存

npm install --registry=https://registry.npm.taobao.org --loglevel=silly
npm cache clean --force
npm install
相關文章
相關標籤/搜索