Error creating a new app - Couldn't find package "@babel/plugin-proposal-decorators" on the "npm" registry
See original GitHub issueIs 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
- 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:
- Created 5 years ago
- Reactions:7
- Comments:10
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 😃@Jokinen that worked! Thanks for pointing it out. I had to
npm logout
and thennpm login
even tho I work with public packages. We’ll have to follow that issue to see how it goes