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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn remove foobar should not error if foobar is already uninstalled #6919

Open
balupton opened this issue Jan 14, 2019 · 0 comments
Open

yarn remove foobar should not error if foobar is already uninstalled #6919

balupton opened this issue Jan 14, 2019 · 0 comments
Assignees
Labels

Comments

@balupton
Copy link

balupton commented Jan 14, 2019

What is the current behavior?

17:19:22:/Users/balupton/Projects/websites/jordanbpeterson.community:master
> yarn remove adasdasd
yarn remove v1.13.0
[1/2] 馃棏  Removing module adasdasd...
error This module isn't specified in a package.json file.
info Visit https://yarnpkg.com/en/docs/cli/remove for documentation about this command.
[1]:17:20:47:/Users/balupton/Projects/websites/jordanbpeterson.community:master
> yarn remove adasdasd --skip-integrity-check
yarn remove v1.13.0
[1/2] 馃棏  Removing module adasdasd...
error This module isn't specified in a package.json file.
info Visit https://yarnpkg.com/en/docs/cli/remove for documentation about this command.
[1]:17:20:48:/Users/balupton/Projects/websites/jordanbpeterson.community:master
> yarn remove adasdasd --force
yarn remove v1.13.0
[1/2] 馃棏  Removing module adasdasd...
error This module isn't specified in a package.json file.
info Visit https://yarnpkg.com/en/docs/cli/remove for documentation about this command.

What is the expected behavior?

No error. Same as npm. Which is desirable, as scaffolding tools such as https://github.com/bevry/boundation will run mass uninstalls to ensure that the project conventions are up to date with the latest, thus removing packages that may or may not be installed, but are no longer wanted.

Please mention your node.js, yarn and operating system version.

> node -e 'console.log(process.versions)'
{ node: '11.6.0',
  v8: '7.0.276.38-node.13',
  uv: '1.24.1',
  zlib: '1.2.11',
  ares: '1.15.0',
  modules: '67',
  nghttp2: '1.34.0',
  napi: '3',
  llhttp: '1.0.1',
  http_parser: '2.8.0',
  openssl: '1.1.0j',
  icu: '63.1',
  unicode: '11.0',
  cldr: '34.0',
  tz: '2018e' }
17:24:07:/Users/balupton/Projects/websites/jordanbpeterson.community:master
> uname -a
Darwin balbook-2018.local 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64
@ghost ghost assigned rally25rs Jan 14, 2019
@ghost ghost added the triaged label Jan 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants