Vue新建项目与npm使用.

learn

C:\Users\71027>npm config get registry
https://registry.npm.taobao.org/

确定是淘宝镜像.

上一次新建项目的经历.

网友的教程

? Project name comment
? Project description 一个留言系统.可以添加留言.查看所有留言.
? Author learning <**@qq.com>
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? Yes
? Pick an ESLint preset
> Standard (https://github.com/standard/standard)
  Airbnb (https://github.com/airbnb/javascript)
  none (configure it yourself) 
? Pick an ESLint preset Standard
? Set up unit tests No
? Setup e2e tests with Nightwatch? No
? Should we run `npm install` for you after the project has been created? (recommended) npm

   vue-cli · Generated "comment".


# Installing project dependencies ...

(2020-1-20 21:43:19)wait

运行结果与上次.类似.不过.多了一个eslint.
(2020-1-20 21:45:58)

Running eslint --fix to comply with chosen preset rules...
# ========================


> comment@1.0.0 lint E:\AllProjects\VscodeProjects\WebProjects\comment\comment
> eslint --ext .js,.vue src "--fix"


# Project initialization finished!
# ========================

To get started:

  cd comment
  npm run dev

Documentation can be found at https://vuejs-templates.github.io/webpack

完成了.同上次的图.

熟悉其项目架构.并开始修改学习代码.

发布了65 篇原创文章 · 获赞 16 · 访问量 5035

猜你喜欢

转载自blog.csdn.net/gwdfff/article/details/104056559
今日推荐