1.搭建脚手架时
npm ERR! code EEXIST
npm ERR! syscall symlink
npm ERR! path ../lib/node_modules/vue-cli/bin/vue
npm ERR! dest /usr/local/bin/vue
npm ERR! errno -17
npm ERR! EEXIST: file already exists, symlink '../lib/node_modules/vue-cli/bin/vue' -> '/usr/local/bin/vue'
npm ERR! File exists: /usr/local/bin/vue
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/apple/.npm/_logs/2020-04-23T08_36_02_380Z-debug.log
原因是npm版本问题,重装最新版npm即可:
sudo npm install npm -g
2.搭建项目时
Sorry, name can no longer contain capital letters.
原因是Project的Name不可以有大写,本想用驼峰命名的,改成小写就行了