I'm using the Ubuntu system.
-----------------------------------------I'm a split line------------------------------------------------------------------------
The last two years of the Vue framework fire, although our company does not, but curiosity driven me to study
Need to install node. js before installing the VUE-CLI framework
node. JS installation process:
sudo wget http://nodejs.org/dist/v6.10.0/node-v6.10.0.tar.gz
Download node from the above code, I installed 6.10.0 Version (of course the best version of the high)
Create a new folder under opt
sudo mkdir node
The next step is to extract node to the node folder under OPT.
sudo tar zxvf node-v6.10.0.tar.gz/opt/node/
Go to Node's directory (/opt/node/node-v6.10.0) and enter
sudo./configure
Input (This step takes a long time when I install)
sudo make
then enter
sudo make install
Once you're done, you can verify with the following code
Node-v //View node version npm-v //view NPM version
Of course, it's best to install CNPM
Install node. js