I am facing problem will installing webpack by npm install webpack?

可紊 提交于 2021-02-11 17:37:22

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!