Vue environment construction (Linux)

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
    write picture description here

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
write picture description here

  • cd vue-demo
    npm install
    npm run dev

The default browser will automatically open
write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325500249&siteId=291194637