Why am I getting Unexpected token '\u0000' when using npm install -g package

后端 未结 1 1092
迷失自我
迷失自我 2021-01-01 16:41

This is probably a Windows specific issue but I haven\'t found any information when googling this issue. I had been using ionic framework which relies on Cordova (or Phoneg

相关标签:
1条回答
  • 2021-01-01 17:13

    Via this question on SO it could be that you just have to do:

    npm cache clean.

    But, also try the other methods suggested there like adding the registry option:

    npm install <packagename> --registry http://registry.npmjs.org/.

    Or, if you've been mingling with the package.json file by yourself, check if it's valid.

    0 讨论(0)
提交回复
热议问题