今天搭建ionic的运行环境老是被一个问题所困惑,问题是:
npm ERR! Unexpected end of JSON input while parsing near '...7T16:53:20.892Z","4.1'。
然后,试了好多方法都没有用。对于我的情况的解决办法是 去设置淘宝镜像代理。
在 cmd中输入: npm config set registry http://registry.npm.taobao.org/
今天搭建ionic的运行环境老是被一个问题所困惑,问题是:
npm ERR! Unexpected end of JSON input while parsing near '...7T16:53:20.892Z","4.1'。
然后,试了好多方法都没有用。对于我的情况的解决办法是 去设置淘宝镜像代理。
在 cmd中输入: npm config set registry http://registry.npm.taobao.org/