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.

error Couldn't find package "@svgr/babel-plugin-add-jsx-attribute@^4.0.0"

See original GitHub issue

Is this a bug report?

Yes

Environment

System: OS: macOS 10.14.1 CPU: x64 Intel® Core™ i7-7820HQ CPU @ 2.90GHz Binaries: Node: 11.10.0 - /usr/local/bin/node Yarn: 1.12.3 - /usr/local/bin/yarn npm: 6.7.0 - /usr/local/bin/npm npmPackages: react: Not Found react-dom: Not Found react-scripts: Not Found npmGlobalPackages: create-react-app: 2.1.1

Steps to Reproduce

  1. run npx create-react-app my-app

Expected Behavior

Create a new react app

Actual Behavior

I’m getting this error

Creating a new React app in /..../...

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

yarn add v1.12.3
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning react-scripts > jest > jest-cli > prompts > kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
warning react-scripts > eslint > file-entry-cache > flat-cache > circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
error Couldn't find package "@svgr/babel-plugin-add-jsx-attribute@^4.0.0" required by "@svgr/babel-preset@^4.1.0" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Error: Couldn't find package "@svgr/plugin-svgo@^4.0.3" required by "@svgr/webpack@4.1.0" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:727:66)
    at new MessageError (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:756:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:35729:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:304:30)
    at /usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:317:13
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
Error: Couldn't find package "@svgr/hast-util-to-babel-ast@^4.1.0" required by "@svgr/plugin-jsx@^4.1.0" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:727:66)
    at new MessageError (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:756:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:35729:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:304:30)
    at /usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:317:13
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
Error: Couldn't find package "@svgr/babel-plugin-svg-em-dimensions@^4.0.0" required by "@svgr/babel-preset@^4.1.0" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:727:66)
    at new MessageError (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:756:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:35729:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:304:30)
    at /usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:317:13
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
Error: Couldn't find package "@svgr/babel-plugin-remove-jsx-empty-expression@^4.0.0" required by "@svgr/babel-preset@^4.1.0" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:727:66)
    at new MessageError (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:756:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:35729:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:304:30)
    at /usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:317:13
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
Error: Couldn't find package "@svgr/babel-plugin-remove-jsx-attribute@^4.0.3" required by "@svgr/babel-preset@^4.1.0" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:727:66)
    at new MessageError (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:756:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:35729:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:304:30)
    at /usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:317:13
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
Error: Couldn't find package "@svgr/babel-plugin-svg-dynamic-title@^4.0.0" required by "@svgr/babel-preset@^4.1.0" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:727:66)
    at new MessageError (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:756:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:35729:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:304:30)
    at /usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:317:13
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
Error: Couldn't find package "@xtuc/ieee754@^1.2.0" required by "@webassemblyjs/ieee754@1.7.11" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:727:66)
    at new MessageError (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:756:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:35729:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:304:30)
    at /usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:317:13
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
Error: Couldn't find package "@xtuc/long@4.2.1" required by "@webassemblyjs/leb128@1.7.11" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:727:66)
    at new MessageError (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:756:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:35729:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:304:30)
    at /usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:317:13
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
Error: Couldn't find package "@xtuc/long@4.2.1" required by "@webassemblyjs/wast-printer@1.7.11" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:727:66)
    at new MessageError (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:756:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:35729:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:304:30)
    at /usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:317:13
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
Error: Couldn't find package "@xtuc/long@4.2.1" required by "@webassemblyjs/wast-parser@1.7.11" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:727:66)
    at new MessageError (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:756:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:35729:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:304:30)
    at /usr/local/Cellar/yarn/1.12.3/libexec/lib/cli.js:317:13
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
Aborting installation.
  yarnpkg add --exact react react-dom react-scripts --cwd /.../... has failed.

Deleting generated file... package.json
Deleting generated file... yarn.lock
Deleting my-app/ from /.../...
Done.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:7

github_iconTop GitHub Comments

1reaction
tepidentitycommented, Mar 13, 2019

Maybe this could help you as it helped me.

0reactions
stale[bot]commented, Apr 23, 2019

This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Couldn't find package "package-name" on the "npm" registry ...
Whenever executing yarn install I get an error message - Couldn't find package "[PACKAGE_NAME]" on the "npm" registry .
Read more >
Error "error Couldn't find package "XXX" when building project ...
I was able to fix installing the missing package manually: sudo npm i git://github.com/mikolalysenko/3d-view sudo npm install.
Read more >
Error Codes | Yarn - Package Manager
A list of Yarn's error codes with detailed explanations. ... means that a package described as having build directives couldn't get built successfully....
Read more >
Couldn't find package - Netlify Support Forums
I am getting the below error while deploying my first site in Netlify error Couldn't find package “@organization/reponame” on the “npm” ...
Read more >
Kotlin Multiplatform Gradle task kotlinNpmInstall unable ...
Error : Couldn't find package "format-util@1.0.5" required by "convertionUtility-frontend@0.0.0-unspecified" on the "npm" registry. Couldn't find package ...
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