nodebrewのインストール
社内はプロキシ環境なので、curlのプロキシオプションを指定して実行します。
curl -L git.io/nodebrew -x http://hogehoge:8080 | perl - setup
パスを通すよう出力されるので、profileに追記します。
$ vim .bash_profile ↓を追記 export PATH=$HOME/.nodebrew/current/bin:$PATH bash_profileを再度読み込みます $ source .bash_profile $ nodebrew nodebrew 1.0.1 Usage: nodebrew help Show this message nodebrew install <version> ~
ヘルプが表示されたら成功です。
node.jsとnpmをインストール
$ nodebrew install latest Fetching: https://nodejs.org/dist/v12.4.0/node-v12.4.0-linux-x64.tar.gz ######################################################################## 100.0% Installed successfully $ nodebrew use latest use v12.4.0 $ node -v v12.4.0 $ npm -v 6.9.0
Vue CLIをインストール
$ npm install -g vue-cli
プロジェクト作成
$ vue init webpack quiz_page 質問はすべて yes を選択します。 ~ # Project initialization finished! # ======================== To get started: cd quiz_page npm run dev Documentation can be found at https://vuejs-templates.github.io/webpack $ cd quiz_page/ $ npm run dev DONE Compiled successfully in 6125ms 16:16:25 I Your application is running here: http://localhost:8080
Webブラウザから http://localhost:8080 にアクセスして以下のページが表示されると成功です。

参考サイト
【Vue.js】爆速でSPAの土台を作る
https://qiita.com/nagimaruxxx/items/8fc59a5ca05bb91bfe1f
コメント