nvm -v
nvm ls
nvm list available
nvm install [版本号]
nvm use [版本号]
npm install -g cnpm -registry=https://registry.npm.taobao.org
cnpm -v
npm install vue-cli -g
vue -V
vue init webpack project-ui
npm -i element-ui
npm -i axios
#Windows上安装vue
npm install -g cnpm --registry=https://registry.npm.taobao.org
#加入环境变量
D:\Download\node-v18.4.0-x64\node_global
cnpm install -g @vue/cli //全局安装 vue-cli
vue -V
vue init webpack mydemo
cd mydemo
npm run dev
apt install npm
npm install --global vue-cli
vue init webpack my-project
cd
npm i element-ui
#加载element-ui
cd 项目目录
npm install --save element-ui
#查看项目\node_modules下是否有element-ui文件
程序中不存在','结尾
在用npm安装插件时,出现了一条警告:
npm WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature de
tection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
1
2
解决方法:
npm install -g core-js@3.1.1
1
也可以npm i core-js
然后
npm i chokidar