vue3

vue3
https://www.cnblogs.com/xiangsj/p/9749451.html
安裝node環境(我已經提前安裝好啦,Vue CLI 需要Node.js8.9 或更高版本 (推薦 8.11.0+))

npm install -g cnpm --registry=https://registry.npm.taobao.org

///卸載舊的2
npm uninstall -g vue-cli  
///安裝新的3
npm install -g @vue/cli


///創建項目 
vue create my-project

cd my-project // 進入到項目根目錄
npm run serve // 啓動項目
npm run build // 打包
npm run dev   // 開放環境運行


ERROR  Error: Cannot find module 'vue-template-compiler/package.json'
npm update vue
//安裝編譯模板
npm install -g vue-template-compiler
npm install vue-template-compiler

 


卸載vue3
npm uninstall -g @vue/cli

例子
https://vuejsexamples.net/examples/


安裝
https://blog.csdn.net/hui_3_6/article/details/83416645
https://www.cnblogs.com/xiangsj/p/9749451.html  
 
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章