创建项目

113 阅读2分钟

Last login: Thu Sep 15 09:19:23 on console

longyingguan@192 ~ % /Users/longyingguan/Downloads/大事件项目复习 

zsh: permission denied: /Users/longyingguan/Downloads/大事件项目复习

longyingguan@192 ~ % vue create vue-ev

\

\

Vue CLI v5.0.8

? Please pick a preset: Default ([Vue 2] babel, eslint)

\

\

Vue CLI v5.0.8

✨  Creating project in /Users/longyingguan/vue-ev.

🗃  Initializing git repository...

⚙️  Installing CLI plugins. This might take a while...

\

\

added 849 packages in 1m

npm notice 

npm notice New minor version of npm available! 8.11.0 -> 8.19.2

npm notice Changelog: github.com/npm/cli/rel…

npm notice Run npm install -g npm@8.19.2 to update!

npm notice 

🚀  Invoking generators...

📦  Installing additional dependencies...

\

\

added 86 packages in 15s

⚓  Running completion hooks...

\

📄  Generating README.md...

\

🎉  Successfully created project vue-ev.

👉  Get started with the following commands:

\

 $ cd vue-ev

 $ npm run serve

\

longyingguan@192 ~ % 

longyingguan@192 ~ % 

longyingguan@192 ~ % vue create vue-ev-75

\

\

Vue CLI v5.0.8

? Please pick a preset: Manually select features

? Check the features needed for your project: Babel, Router, Vuex, CSS 

Pre-processors, Linter

? Choose a version of Vue.js that you want to start the project with 2.x

? Use history mode for router? (Requires proper server setup for index fallback

in production) No

? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported

by default): Less

? Pick a linter / formatter config: Standard

? Pick additional lint features: Lint on save

? Where do you prefer placing config for Babel, ESLint, etc.? In package.json

? Save this as a preset for future projects? No

\

\

Vue CLI v5.0.8

✨  Creating project in /Users/longyingguan/vue-ev-75.

🗃  Initializing git repository...

⚙️  Installing CLI plugins. This might take a while...

\

\

added 849 packages in 59s

🚀  Invoking generators...

📦  Installing additional dependencies...

\

\

added 157 packages in 24s

⚓  Running completion hooks...

\

📄  Generating README.md...

cd

🎉  Successfully created project vue-ev-75.

👉  Get started with the following commands:

\

 $ cd vue-ev-75

 $ npm run serve

\

longyingguan@192 ~ % cd vue-ev-75

longyingguan@192 vue-ev-75 % yarn serve

zsh: command not found: yarn

longyingguan@192 vue-ev-75 % npm serve

Unknown command: "serve"

\

Did you mean this?

    npm run serve # run the "serve" package script

\

To see a list of supported npm commands, run:

  npm help

longyingguan@192 vue-ev-75 % npm run serve

\

vue-ev-75@0.1.0 serve

vue-cli-service serve

\

 INFO  Starting development server...

\

\

 DONE  Compiled successfully in 22920ms                                 10:29:38

\

\

  App running at:

  - Local:   http://localhost:**8080**/ 

  - Network: http://192.168.1.6:**8080**/

\

  Note that the development build is not optimized.

  To create a production build, run npm run build.

\

\

\

\

\

\

\

\

\

\

\

\

\

\

\

\