uni-app 安装期间遇到的问题

uni-app 安装官网:uni-app安装的链接
全局安装vue-cli命令:

npm install -g @vue/cli

出现安装问题

npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/joi. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
npm ERR! Unexpected end of JSON input while parsing near '...TGOVzYcDOP1jLScCp0ACN'

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sam/.npm/_logs/2019-04-29T01_23_19_163Z-debug.log

查了一下资料,需要清一下缓存即可

npm cache clean --force

然后在重新执行就好了

npm install -g @vue/cli

运行vue --version出现版本信息则说明安装成功

你可能感兴趣的:(uni-app学习)