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

bug: pnpm remove doesn't work #467

Closed
AleshaOleg opened this issue Jul 31, 2023 · 3 comments
Closed

bug: pnpm remove doesn't work #467

AleshaOleg opened this issue Jul 31, 2023 · 3 comments

Comments

@AleshaOleg
Copy link

Provide environment information

System:
OS: Linux 6.2 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
Memory: 51.45 GB / 62.22 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
Yarn: 1.22.19 - /usr/bin/yarn
npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
Watchman: 20230129.130010.0 - /usr/local/bin/watchman

Describe the bug

Initialized turbo, and can't remove packages inside apps/expo directory. Made already some commits to the repository, but now decided to get rid of @shopify/flash-list package, and can't do it.

pnpm remove @shopify/flash-list
../..                                    |  WARN  `node_modules` is present. Lockfile only installation will make it out-of-date
 ERR_PNPM_FETCH_404  GET https://registry.npmjs.org/@acme%2Feslint-config: Not Found - 404

This error happened while installing a direct dependency of /home/aleshaoleg/Documents/Projects/wealth-way/apps/expo

@acme/eslint-config is not in the npm registry, or you have no permission to fetch it.

No authorization header was set for the request.

With installation, there was no problem at all and all of the @acme packages were installed.

Link to reproduction

https://github.com/solofeed/wealth-way

To reproduce

cd apps/expo && pnpm remove @shopify/flash-list

Additional information

No response

@MendyLanda
Copy link
Contributor

I'm also experiencing this, I got used to deleting it from package.json and then running pnpm i 🙈

@juliusmarminge
Copy link
Member

Run with --filter or -F from root and it should work:

CleanShot 2023-08-08 at 21 16 32@2x

@danielrotaermel
Copy link

danielrotaermel commented Oct 17, 2023

Hi I also ran into this issue. Is there a way we could enable running the "remove" from a workspace? Any idea why this is not working?

edit
seems to be a problem with the "workspace:" protocol/prefix.
ref:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants