VUE environment to build and run the project

First borrow someone else's blog

https://www.cnblogs.com/lgx5/p/10732016.html

Existing projects run
VUE project
ndoe -v 
npm -v
npm install -g cnpm --registry=http://registry.npm.taobao.org
npm install webpack -g
cnpm install vue-cli -g
Under the project directory (if she has an error) 
https://www.cnblogs.com/kidsitcn/p/4557548.html (popular error)
npm install --msvs_version 2015
npm config set msvs_version 2012 --global
https://www.jianshu.com/p/6053e9b35d9a (W10 issue)
//npm install --msvs_version=2015
npm run dev
Get the address + port number to start 

building the project alone
vue init webpack yourProject (project name) 
all the way to enter, after the completion of normal build
npm RUN dev
HTTP: // localhost: 8080 you can see the default interface vue error vue: Could not load file C: \ Users \ ..., because prohibit running scripts on this system. For more information, see HTT PS: /go.microsoft.com/fwlink/ in LinkID = 135170 about_Execution_Policies?. Location Line: Character 1: 1 + VUE WebPACK the init demo1 + ~ ~ ~ + CategoryInfo: SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId: UnauthorizedAccess Solution: Run powershell (administrator) enter set-ExecutionPolicy RemoteSigned selection: Y or A

Guess you like

Origin www.cnblogs.com/UBEING/p/12300378.html