npm create vue@latest cd vue-project npm i -D typescript npm install -g typescript ts-node npm install webpack -g npm install -g @vue/cli npm install -g typescript tsc --version npm install --g create-vue or npm install --g @vue/cli npm install --global vue-cli npm run format npm run dev 在项目目录文件下,通过cmd运行下述指令。 npm init vue@latest cd vue-prject npm install npm run dev npm install -g serve # -s 参数的意思是将其架设在 Single-Page Application 模式下 # 这个模式会处理即将提到的路由问题 serve -s dist npm install vue-router@4 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine Get-ExecutionPolicy -List npm install -g cnpm --registry=https://registry.npmmirror.com npm install -g typescript ts-node npm install webpack -g https://www.typescriptlang.org/tsconfig/#files vscode中vue3+ts报类型“{ }“上不存在属性“ “,以及ts.config.app.json和tsconfig.node.json中报错( error when starting dev server: Error: listen EACCES: permission denied ::1:5173 at Server.setupListenHandle [as _listen2] (node:net:1882:21) at listenInCluster (node:net:1961:12) at GetAddrInfoReqWrap.doListen [as callback] (node:net:2135:7) at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:111:8)
标签:npm,node,vue,vscode,create,project,--,typescript,install From: https://www.cnblogs.com/geovindu/p/18327732