# MAC安裝 # vue cli 安裝指令 可以使用下列任一命令安装这个新的包: npm install -g @vue/cli # OR yarn global add @vue/cli 但要先裝 npm sudo apt install npm 失敗 因為要先有 nodejs sudo apt-get update sudo apt-get install -y build-essential sudo apt install nodejs sudo apt install npm ## npm 安裝失敗移除 apt remove npm rm -r /usr/local/lib/node_modules/npm ## 升級 npm sudo npm install npm -g ## 升級 nodejs node有一个模块叫n ,是专门用来管理node.js的版本的。 第一步,安装 n $ npm install -g n 第二步,升级 node 到最新稳定版本 $ n stable ## 安裝 vue cli3 sudo npm install -g @vue/cli ## CentOS 上更新失敗請用 https://github.com/npm/npm/issues/15821 參考這篇解決
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.