vue安装报错

新手上路,请多包涵

构建vue大型应用,完全按照菜鸟教程一步步进行安装,但是在cnpm run dev时报(node:1192) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: spawn cmd ENOENT 错误。
以下是README.md文件的内容

my-project

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

百度后 不是,默认浏览器的问题也不是环境变量的问题。。但就是找不到答案。。。求各位大神解决下啊啊啊啊
ps:因为刚接触,因为运行失败,在反复安装过程中 多次进行全局安装$ cnpm install --global vue-cli(不知道是不是这个问题??)

阅读 4.5k
1 个回答
新手上路,请多包涵

已解决,查看端口号是否被占用,重新启动电脑,

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题