npm ERR! Unexpected token < in JSON at position 12842

前端 未结 11 1772
借酒劲吻你
借酒劲吻你 2021-01-01 10:59

Every time I try installing any package or even if I try doing npm install I keep getting this error. I have no idea why I am getting the error. I am totally ne

11条回答
  •  庸人自扰
    2021-01-01 11:55

    It's because of a package-lock.json merge conflict.

    Delete the file, delete node_modules, and run npm install to solve the problem:

    rm package-lock.json
    rm -rf node_modules
    npm install
    

提交回复
热议问题