1. 程式人生 > >解決Unexpected end of JSON input while parsing near '...},"_hasShrinkwrap":fa'

解決Unexpected end of JSON input while parsing near '...},"_hasShrinkwrap":fa'

解決Unexpected end of JSON input while parsing near ‘…},"_hasShrinkwrap":fa’

今天匯入一個新react專案,使用npm install安裝依賴的時候遇到了

npm WARN deprecated [email protected]: rc-drawer-menu is deprecated, please use rc-drawer instead.
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated 
[email protected]
: Package no longer supported. Contact [email protected] for more info. npm WARN deprecated [email protected]: Switch to the `bfj` package for fixes and new features! npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. npm WARN deprecated
[email protected]
: The major version is no longer supported. Please update to 4.x or newer npm ERR! Unexpected end of JSON input while parsing near '...},"_hasShrinkwrap":fa' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\DELL\AppData\Roaming\npm-cache\_logs\2018-10-15T04_10_45_863Z-debug.log

這個問題,通過查閱相關資料找到了解決辦法 使用npm cache clean --force