question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`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 issue

What 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.

image

Expected Behavior

Should use NPM instead of Yarn.

To Reproduce

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Aliemekacommented, Nov 24, 2021

I think there should be a way to specify the package manager you want to use. Not sure though. But will check this out.

0reactions
github-actions[bot]commented, Mar 8, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found