安装 vue-cli 报错 安装不成功

来源:6-1 Vue项目预热 - 环境配置

慕函数3431817

2019-03-11

C:\Users\admin>npm install -g vue-cli
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to “coffeescript” (no hyphen)
npm ERR! Unexpected end of JSON input while parsing near ‘…S28HmGLLc2o4elcc2EIq2’

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\npm-cache_logs\2019-03-11T13_54_05_150Z-debug.log

报错这个怎么解决

写回答

2回答

慕函数3431817

提问者

2019-03-12

已经解决,安装淘宝npm镜像就可以了

0
0

Dell

2019-03-11

手机开个热点,然后npm install 试试

0
2
慕函数3431817
C:\Users\admin>npm install npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\admin\package.json' npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\admin\package.json' npm WARN admin No description npm WARN admin No repository field. npm WARN admin No README da
2019-03-12
共2条回复

Vue2.5-2.6-3.0开发去哪儿网App 零基础入门到实战

课程紧跟Vue3版本迭代,企业主流版本Vue2+Vue3全掌握

10675 学习 · 8191 问题

查看课程