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 creating a new app - Couldn't find package "@babel/plugin-proposal-decorators" on the "npm" registry

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.2.0 - /usr/local/bin/node Yarn: 1.12.3 - /usr/local/bin/yarn npm: 6.4.1 - /usr/local/bin/npm Browsers: Chrome: 70.0.3538.110 Safari: 12.0.1 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 cra 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
[1/4] 🔍  Resolving packages...
error Couldn't find package "@babel/plugin-proposal-decorators" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

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:7
  • Comments:10

github_iconTop GitHub Comments

10reactions
Jokinencommented, Nov 28, 2018

This issue migth be related with this:

https://npm.community/t/can-t-install-scoped-packages-e401-unauthorized/3631/5

In the thread a suggested workaround was logging out of npm (npm logout). It worked for me 😃

2reactions
tafelitocommented, Nov 28, 2018

@Jokinen that worked! Thanks for pointing it out. I had to npm logout and then npm login even tho I work with public packages. We’ll have to follow that issue to see how it goes

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm - sanity upgrade ERROR: Couldn't find package "@babel ...
That dependency hasn't changed in 2.18.0 so hopefully deleting your node_modules ( rm -rf node_modules ) and installing again will get ...
Read more >
@babel/plugin-proposal-decorators - npm
Compile class and object decorators to ES5. Latest version: 7.20.7, last published: 6 days ago.
Read more >
babel-plugin-transform-typescript-metadata - npm package
Babel plugin to emit decorator metadata like typescript compiler For more information about how to use this package see README. Latest version published...
Read more >
deleting generated file... package.json - You.com
create -react-app Failing to create a new React app in windows 10 ... error Couldn't find package "@babel/plugin-proposal-decorators" on the "npm" registry.
Read more >
[juneau-petstore] 47/48: react frontend added-Apache Mail ...
diff --git a/pets/package-lock.json b/pets/package-lock.json new file ... + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal- ...
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