runoops.com

cnpm install 报错

cnpm i 报错:

$ cnpm i
⠴ [31/43] Installing thenify@^3.2.1content buffer: {"type":"Buffer","data":[]}
✖ Install fail! SyntaxError: Unexpected end of JSON input (file: /xxx/node_modules/_thenify@3.3.1@thenify/package.json)
SyntaxError: Unexpected end of JSON input (file: /xxx/node_modules/_thenify@3.3.1@thenify/package.json)
    at JSON.parse (<anonymous>)

解决方法:

删除项目下的node_modules文件夹,重新执行cnpm i即可。