Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Suryadevelops opened this issue Jan 22, 2021 · 5 comments · Fixed by #2405
Labels
bug Something isn't working

Comments

@Suryadevelops
Copy link

Suryadevelops commented Jan 22, 2021

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

@Suryadevelops Suryadevelops added the bug Something isn't working label Jan 22, 2021
@merceyz
Copy link
Member

merceyz commented Jan 22, 2021

Did you run yarn install?

You need to provide a reproduction

@Suryadevelops
Copy link
Author

I will try

@Suryadevelops
Copy link
Author

worked thanks @merceyz

@merceyz
Copy link
Member

merceyz commented 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

@Suryadevelops
Copy link
Author

Suryadevelops commented Jan 22, 2021

@merceyz
It confused me because that it saying to upgrade total yarn in my computer better change it to say try to run yarn install from your root directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants