Vue.js 安装
Vue Js Installation
尝试通过
安装vue js
npm install -g @vue/cli.
我的npm版本是6.14.4,node版本是12.16.2
这是我遇到的错误
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! Unexpected end of JSON input while parsing near '...nEaUD\r\n=F4TR\r\n---'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Sudesh\AppData\Roaming\npm-cache\_logs20-04-16T01_32_53_989Z-debug.log
我试着查看回购协议。我不明白这个问题的解决方案是什么。
尝试 npm cache clean --force
然后 运行 npm install -g @vue/cli
。我想这一定能解决你的问题。
尝试 npm cache clean --force 然后 运行 npm install -g @vue/cli 我想这一定能解决你的问题。
清理 npm 缓存:npm cache clean --force
如果您使用的是 mac 或 Linux,请尝试使用 sudo npm install -g @vue/cli
对于 windows npm install -g @vue/cli
基本上,在我们的终端中使用 npm cache clean --force
命令删除缓存文件夹中 运行 npm install -g @vue/cli
之后的所有数据。然后 运行 vue create myapp
创建你的 vue CLI 应用程序
- 步骤:1
npm cache clean --force
- 步骤:2
npm install -g @vue/cli
尝试通过
安装vue jsnpm install -g @vue/cli.
我的npm版本是6.14.4,node版本是12.16.2
这是我遇到的错误
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! Unexpected end of JSON input while parsing near '...nEaUD\r\n=F4TR\r\n---'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Sudesh\AppData\Roaming\npm-cache\_logs20-04-16T01_32_53_989Z-debug.log
我试着查看回购协议。我不明白这个问题的解决方案是什么。
尝试 npm cache clean --force
然后 运行 npm install -g @vue/cli
。我想这一定能解决你的问题。
尝试 npm cache clean --force 然后 运行 npm install -g @vue/cli 我想这一定能解决你的问题。
清理 npm 缓存:npm cache clean --force
如果您使用的是 mac 或 Linux,请尝试使用 sudo npm install -g @vue/cli
对于 windows npm install -g @vue/cli
基本上,在我们的终端中使用 npm cache clean --force
命令删除缓存文件夹中 运行 npm install -g @vue/cli
之后的所有数据。然后 运行 vue create myapp
创建你的 vue CLI 应用程序
- 步骤:1
npm cache clean --force
- 步骤:2
npm install -g @vue/cli