关于前端:安装node环境

1. 下载长期保护版本

2. 留神放进一个没有空格的目录下

3. 抉择

4. 在node目录下新建

node_global
node_cache

5. 批改好.npmrc

npm config set prefix "D:\node\node_global"
npm config set cache "D:\node\node_cache"

增加全局包的环境变量

D:\node\node_global

6. 装置yarn

npm i -g yarn
  • 淘宝镜像

    yarn config set registry https://registry.npm.taobao.org

7. 装置vue

npm i -g vue
npm i -g @vue/cli

8. 装置pnpm

npm i -g pnpm

[[pnpm]]

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理