关于前端:安装node环境

3次阅读

共计 309 个字符,预计需要花费 1 分钟才能阅读完成。

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]]

正文完
 0