vue serve命令问题
vue ui等等执行都是正常,vue-cli是全局安装的
但是执行vue serve的时候提示
Command vue serve requires a global addon to be installed.
Please run npm install -g @vue/cli-service-global and try again.
vue ui等等执行都是正常,vue-cli是全局安装的
但是执行vue serve的时候提示
Command vue serve requires a global addon to be installed.
Please run npm install -g @vue/cli-service-global and try again.
2019-01-16
Command vue serve requires a global addon to be installed.
Please run npm install -g @vue/cli-service-global and try again.
你的报错的这两句话直译过来就是 “vue serve命令需要全局安装,请使用npm install -g @vue/cli-service-global”
如果以上的命令执行后还是不行,请检查 :
检查npm, node版本。
给node命令执行的cmd终端“超级管理员权限”。
重新安装cli命令工具:npm install -g @vue/cli , 使用vue serve命令还需要安装:npm install -g @vue/cli-service-global
检查 cli版本。
重新运行vue serve
执行npm安装语句会报错
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm ERR! Unexpected end of JSON input while parsing near '...endencies":{"@webasse'
npm ERR! A complete log of this run can be found in:
npm ERR! /var/root/.npm/_logs/2019-01-16T07_55_56_672Z-debug.log
举报