npm / npx

npm package executor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[QUESTION] npx to use package.json to decide what version to execute

mwmcode opened this issue · comments

commented

What / Why

Is there a way to tell npx to use the version specified package.json?

Who

So when running

      npx cypress run

it will look at package.json and decides what version of cypress to fetch/execute.

References

The docs say you can decide the version the common NPM way (cypress@1.2.3) but I wonder if there is away to tell it to look at a package.json and pick the version from there