VsCode 用脚手架快速搭建项目

VsCode 搭建项目用脚手架
  • node -v
  • npm -v
  • npm install -g vue-cli

如果报错Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’ 点击链接

  • vue init webpack test
? Project name test
? Project description A Vue.js project
? Author 
? Vue build standalone
? Install vue-router? No
? Use ESLint to lint your code? No
? Set up unit tests No
? Setup e2e tests with Nightwatch? No
? Should we run `npm install` for you after the project has been created? (recommended) npm

进入项目,npm run dev 

你可能感兴趣的:(Vue,Mac,git)