一、集成vue
golang market 搜索vue ,下载安装
二、集成nodejs
1、运行编辑运行按钮 Edit Configurations
2、其中Node interpreter没有的话,自己添加一下安装的路径 node.exe
三、运行
如果是拷贝的项目,当前目录下 npm install 安装所有包到 当前项目下的node_modules
然后点击 运行命令的按钮,即可编译运行。
四、其他
常见报错:
报错一:@vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the dependency tree
package.json添加
"vue-loader": "^14.2.4",
参考文章:https://blog.csdn.net/bey_bey_bey/article/details/120744400
报错二:Cannot read properties of null (reading ‘pickAlgorithm‘
yarn 安装 同时更新为淘宝镜像
插件三:
vue ui
cnpm i axios --save-dev
cnpm i jsonp --sava-dev
npm i vue-lazyload element-ui
报错四:'vue-cli-service' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm install
报错五:
:无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正
解决方法:添加环境变量,path下新增
C:\Program Files\nodejs\npm