Webpack: 'npm run dev' to get started even if yarn is selected before

Created on 24 Apr 2018  路  3Comments  路  Source: vuejs-templates/webpack

Reference

https://github.com/vuejs/vue-cli/issues/1164

Vue version

2.9.3

Reproduction link

No need for a repo.

Steps to reproduce

vue init webpack my-project
Select Yarn as package manager

At the End of installation...

To get started:
cd my-project
... and then...

What is expected?

yarn run dev

What is actually happening?

npm run dev

Most helpful comment

I think he means that this line:

https://github.com/vuejs-templates/webpack/blob/4f564a2715dd9ca39307c5603a3b91f0523f1f67/utils/index.js#L78

should take into account the npm/yarn option selection instead of always displaying "npm run dev"

All 3 comments

I have no idea what you are talking about

While installation you can choose the package manager. In this case i took yarnbut at the end of installation the instruction says to use npm to start the app not yarn. I think it's inconsistent.

In some of my projects while working with other people we often had problems because of switching between npm and yarn. The system should lead devs to use only one package manager from the beginning on.

I think he means that this line:

https://github.com/vuejs-templates/webpack/blob/4f564a2715dd9ca39307c5603a3b91f0523f1f67/utils/index.js#L78

should take into account the npm/yarn option selection instead of always displaying "npm run dev"

Was this page helpful?
0 / 5 - 0 ratings