1. The first step is to install the node environment
Address: https://nodejs.org/en/download/ , select the source code
- tar -zxvf node-v8…tar.gz
cd node-v8…
./configure
make && make install
2. The second step node environment detection
- node -v
3. vue-cli scaffolding installation
If accessing the external network is slow, you can use Taobao's mirror https://npm.taobao.org/
to open the command terminal npm install -g cnpm --registry= https://registry.npm.taobao.org
After pressing Enter, I will You can happily replace npm with cnpm
Install vue-cli
- npm install vue-cli -g
4. Initialize the project
- vue init webpack vue-demo
Then choose Y OR N according to your needs
- cd vue-demo
npm install
npm run dev
The default browser will automatically open