Vue環境安裝搭建,步驟以下css
https://nodejs.org/en/html
node -vvue
配置環境變量
NODE_HOME=D:\Program Files\nodejsnode
%NODE_HOME%\;
%NODE_HOME%\node_modules;
%NODE_HOME%\node_global_modules;webpack
npm install npm -gios
npm -vweb
cnpm install npm -gvue-cli
npm config ls npm
npm config set registry http://registry.cnpmjs.orggulp
npm config set prefix "D:\Program Files\nodejs\node_global_modules"
npm config set cache "D:\Program Files\nodejs\node_cache"
npm install webpack webpack-cli -g
npm install webpack webpack -g
npm install vue-cli -g
vue init webpack demo
cd demo
npm run dev
npm run build
npm install -g babel-cli
npm install babel-preset-es2015 babel-cli --save-dev
npm install babel-loader --save-dev
npm install babel-core --save-dev
#npm run compile
https://segmentfault.com/a/1190000008899254
npm init -yes
npm install -g gulp
npm install gulp -save-dev
npm install -g webpack
npm install webpack-cli -g
npm install webpack webpack-cli -save-dev
#CSS
npm install style-loader --save-dev
npm install css-loader --save-dev
#HTML
npm install html-webpack-plugin --save-dev
npm install babel-loader @babel/core @babel/preset-env -D
#熱更新
npm install webpack-dev-sever --save-dev
webpack --mode development
npm install --save axios vue-axios