使用cnpm后,出现光标,但是就是没反应。。。。。
找不到原因,重装似乎也不行,找到一个完全重载的方法:
- 先卸载cnpm:
npm uninstall -g cnpm --registry=https://registry.npm.taobao.org
- 注册一下镜像:
npm set registry https://registry.npm.taobao.org
- 解析一下node-gyp模块:
npm set disturl https://npm.taobao.org/dist
- 清理下npm缓存:
npm cache clean --force
- 重新安装:
npm install -g cnpm --registry=https://registry.npm.taobao.org
记录一下,这个问题很是奇葩。