问题
npm ERR! Unexpected end of JSON input while parsing near '...pes/node":"^12.6.9","'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Dubey\AppData\Roaming\npm-cache_logs\2020-05-30T08_45_02_091Z-debug.log
Please help me to get over this error.
回答1:
try this
npm cache clean --force
回答2:
"Unexpected end of JSON input while parsing near" happens when you have a syntactically wrong package.json
.
Try to copy paste your package.json
file (all the file) here.
This tool will report any errors with your file if you have any.
来源:https://stackoverflow.com/questions/62100110/i-am-facing-problem-will-installing-webpack-by-npm-install-webpack