$ git clone ht tps://github.com/vqlai/vue2-football.git
$ npm install
npm ERR! path D:\web-save\ceshi\vue2-football\node_modules\js-beautify\js\bin\cs s-beautify.js
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod 'D:\web-save\ceshi\vue2 -football\node_modules\js-beautify\js\bin\css-beautify.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\QiHuaBu\AppData\Roaming\npm-cache\_logs\2017-09-18T06_38_4 5_183Z-debug.log
下载别人的GitHub查看,报错了??
这是什么情况??
老铁们,帮忙看看>_<
PS:运行的结果:Cannot GET /
错误提示:
These dependencies were not found:
- pages/news/news.vue in ./src/router/index.js
- pages/detail/detail.vue in ./src/router/index.js
- pages/race/race.vue in ./src/router/index.js
- pages/data/data.vue in ./src/router/index.js
- pages/video/video.vue in ./src/router/index.js
To install them, you can run: npm install --save pages/news/news.vue pages/detail/detail.vue pages/race/race.vue pages/data/data.vue pages/video/video.vue
This relative module was not found:
- ./App in ./src/main.js
PPS:感谢各位老铁~_~
从github上下载 js-beautify ,然后放到node_modules文件夹,再用淘宝镜像 cnpm install,就不会报错了,npm run dev就可以运行了。