1.package.json 依赖包不全的时候 npm install 重新装一下就可以了。 2.npm run dev 一定要在项目目录下运行 否则会提示找不到package json。 3.mac用户一定要记得命令前加sudo。