`next lint` installs stuff using yarn but there's no `yarn.lock` on my project but it does have a `package-lock.json`
See original GitHub issueWhat version of Next.js are you using?
12.0.5-canary.8
What version of Node.js are you using?
16.13.0
What browser are you using?
Chrome
What operating system are you using?
Windows
How are you deploying your application?
next start
Describe the Bug
next lint
installs stuff using yarn but there’s no yarn.lock
on my project but it does have a package-lock.json
.
Expected Behavior
Should use NPM instead of Yarn.
To Reproduce
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Yarn import now uses package-lock.json | Yarn Blog
When it does, yarn creates a dependency tree using npm-logical-tree from the package.json and package-lock.json in the project's root directory.
Read more >Yarn install does not install missing modules in node_modules
If a module is missing from node_modules (i.e. directory is not there) yarn should install the missing module and not report everything is...
Read more >Why does my project have both a package-lock.json and yarn ...
When you use yarn, you will see a package.json and a yarn.lock files. I suggest to push your functional project to git first,...
Read more >JavaScript package managers compared: npm, Yarn, or pnpm?
Lock files store exactly the versions of each dependency installed for your project, enabling more predictable and deterministic installs. This ...
Read more >WebDev 101: How to use npm and Yarn | Unicorn Utterances
In order to fix this error, we need to make sure that classnames is in our dependency object in package.json and that we've...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think there should be a way to specify the package manager you want to use. Not sure though. But will check this out.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.