[Exchange and share] nodejs和vue脚手架的安装
Tofloor
poster avatar
66-88
deepin
2023-04-21 21:04
Author

目前我找到搭建环境的最方便的方法了,记录一下:

  1. sudo apt-get install nodejs 进行安装

  2. node -v进行验证并查看node. js版本 npm -v查看npm版本

  3. 配置淘宝镜像

    1. sudo npm config set registry https://npmmirror.com
    2. 安装 cnpm npm install -g cnpm --registry=https://registry.npmmirror.com
    3. 检查cnpm状态 cnpm -v
  4. 给你们看一下我成功后的截图:

    image.png

    image.png

  5. Vue脚手架的安装:

cnpm install -g @vue/cli

验证安装:vue --version

Reply Favorite View the author
All Replies
青稚
deepin
2023-04-21 21:52
#1

安装方法,这个应该能适用,可以安装最新版本的。

https://bbs.deepin.org/phone/zh/post/253943

Reply View the author
DebuggerX
deepin
2023-04-21 22:07
#2
青稚

安装方法,这个应该能适用,可以安装最新版本的。

https://bbs.deepin.org/phone/zh/post/253943

这种方式还不如LZ的……

Reply View the author
DebuggerX
deepin
2023-04-21 22:08
#3

cnpm换成pnpm就更好了

Reply View the author
66-88
deepin
2023-04-21 22:11
#4
DebuggerX

cnpm换成pnpm就更好了

我个人喜欢yarn😁

Reply View the author