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.

This package doesn't seem to be present in your lockfile; try to make an install to update your resolutions

See original GitHub issue

Describe the bug I was getting this error when I tried to run a yarn command and this started to happen after I shifted the yarn berry

his package doesn't seem to be present in your lockfile; try to make an install to update your resolutions

My package.json file

{
  "name": "",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "watch": "tsc -w",
    "dev": "nodemon dist/index.js",
    "start": "node dist/index.js",
    "start2": "ts-node src/index.ts",
    "dev2": "nodemon --exec ts-node src/index.ts",
    "create:migration": "mikro-orm migration:create"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "@types/express": "^4.17.11",
    "@types/node": "^14.14.20",
    "nodemon": "^2.0.7",
    "ts-node": "^9.1.1",
    "typescript": "^4.1.3"
  },
  "dependencies": {
    "@mikro-orm/cli": "^4.3.4",
    "@mikro-orm/core": "^4.3.4",
    "@mikro-orm/migrations": "^4.3.4",
    "@mikro-orm/postgresql": "^4.3.4",
    "apollo-server-express": "^2.19.1",
    "argon2": "^0.27.1",
    "express": "^4.17.1",
    "graphql": "^15.4.0",
    "pg": "^8.5.1",
    "type-graphql": "^1.1.1"
  },
  "mikro-orm": {
    "useTsNode": true,
    "configPaths": [
      "./src/mikro-orm.config.ts",
      "./dist/Mikro-orm.config.js"
    ]
  }
}

also added yarn.lock

https://gist.github.com/Suryadevelops/2a59de8fe395bee643cbf7e8f28f2c73

Screenshots

image

  • OS: Windows
  • Node version [v14.15.4]
  • Yarn version [2.4.0]

Additional context

Can anyone say me how I can remove berry?

apologize if this was asked already

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
merceyzcommented, Jan 22, 2021

What part of the error message try to make an install to update your resolutions wasn’t clear enough to indicate that was a possible solution? (I’m asking so that we can improve it.)

Can anyone say me how I can remove berry?

Revert the changes made by the set version command https://yarnpkg.com/getting-started/migration#step-by-step

1reaction
merceyzcommented, Jan 22, 2021

Did you run yarn install?

You need to provide a reproduction

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command yarn import error: This package doesn't seem to be ...
Yarn - Command yarn import error: This package doesn't seem to be present in your lockfile; try to make an install to update...
Read more >
[Bug]This package doesn't seem to be present in your lockfile ...
This package doesn't seem to be present in your lockfile; try to make an install to update your resolutions I got this error...
Read more >
Build fails with Internal Error: website@workspace:.: This ...
This package doesn't seem to be present in your lockfile; run “yarn install” to update the lockfile”. It is set for continuous deployment....
Read more >
Showing error in yarn start command says This package ...
[Solved]-Showing error in yarn start command says This package doesn't seem to be present in your lockfile; try to make an install to...
Read more >
Migration | Yarn - Package Manager
A step-by-step and in-depth migration guide from Yarn 1 (Classic) to Yarn 2 ... Run yarn install to migrate the lockfile; Take a...
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