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.

npm install react react-dom --save` failed on npm v3.3.12

See original GitHub issue

Note from Maintainers

This is an npm bug. Please update npm: npm i -g npm@latest.


After installing create-react-app version 0.5.0 and running the command to create a project I get the error below:

$ create-react-app tktswp
Creating a new React app in /Users/MyUser/Projects/tktswp.

Installing packages. This might take a couple minutes.
Installing react-scripts from npm...


> fsevents@1.0.14 install /Users/MyUser/Projects/tktswp/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

[fsevents] Success: "/Users/MyUser/Projects/tktswp/node_modules/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> fsevents@1.0.14 install /Users/MyUser/Projects/tktswp/node_modules/react-scripts/node_modules/chokidar/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

[fsevents] Success: "/Users/MyUser/Projects/tktswp/node_modules/react-scripts/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
tktswp@0.1.0 /Users/MyUser/Projects/tktswp
β”œβ”€β”¬ react-scripts@0.6.0
β”‚ β”œβ”€β”¬ babel-preset-react-app@0.2.1
β”‚ β”‚ └─┬ babel-preset-latest@6.14.0
β”‚ β”‚   └─┬ babel-preset-es2015@6.14.0
β”‚ β”‚     └─┬ babel-plugin-transform-es2015-unicode-regex@6.11.0
β”‚ β”‚       └── regexpu-core@2.0.0
β”‚ └─┬ fsevents@1.0.14
β”‚   └── nan@2.4.0
└─┬ webpack@1.13.2
  └─┬ watchpack@0.2.9
    └─┬ chokidar@1.6.0
      └─┬ fsevents@1.0.14
        └── nan@2.4.0

npm WARN EBUNDLEOVERRIDE Replacing bundled react-scripts > babel-plugin-transform-es2015-unicode-regex with new installed version
Installing react and react-dom from npm...

object-assign@4.1.0 node_modules/react-scripts/node_modules/react-dev-utils/node_modules/object-assign -> node_modules/object-assign
regexpu-core@2.0.0 node_modules/react-scripts/node_modules/babel-plugin-transform-es2015-unicode-regex/node_modules/regexpu-core -> node_modules/react-scripts/node_modules/babel-preset-es2015/node_modules/regexpu-core
- babel-plugin-transform-es2015-unicode-regex node_modules/react-scripts/node_modules/babel-plugin-transform-es2015-unicode-regex
- jsesc@0.5.0 node_modules/react-scripts/node_modules/babel-preset-react-app/node_modules/jsesc
- regenerate@1.3.1 node_modules/react-scripts/node_modules/babel-preset-react-app/node_modules/regenerate
- regexpu-core@2.0.0 node_modules/react-scripts/node_modules/babel-preset-react-app/node_modules/regexpu-core
- regjsgen@0.2.0 node_modules/react-scripts/node_modules/babel-preset-react-app/node_modules/regjsgen
- regjsparser@0.1.5 node_modules/react-scripts/node_modules/babel-preset-react-app/node_modules/regjsparser
- pinkie@2.0.4 node_modules/react-scripts/node_modules/react-dev-utils/node_modules/pinkie
- pinkie-promise@2.0.1 node_modules/react-scripts/node_modules/react-dev-utils/node_modules/pinkie-promise
tktswp@0.1.0 /Users/MyUser/Projects/tktswp
β”œβ”€β”¬ react@15.3.2
β”‚ β”œβ”€β”¬ fbjs@0.8.4
β”‚ β”‚ β”œβ”€β”€ core-js@1.2.7
β”‚ β”‚ β”œβ”€β”€ immutable@3.8.1
β”‚ β”‚ β”œβ”€β”¬ isomorphic-fetch@2.2.1
β”‚ β”‚ β”‚ β”œβ”€β”¬ node-fetch@1.6.3
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ encoding@0.1.12
β”‚ β”‚ β”‚ β”‚ β”‚ └── iconv-lite@0.4.13
β”‚ β”‚ β”‚ β”‚ └── is-stream@1.1.0
β”‚ β”‚ β”‚ └── whatwg-fetch@1.0.0
β”‚ β”‚ β”œβ”€β”¬ promise@7.1.1
β”‚ β”‚ β”‚ └── asap@2.0.5
β”‚ β”‚ └── ua-parser-js@0.7.10
β”‚ └─┬ loose-envify@1.2.0
β”‚   └── js-tokens@1.0.3
└── react-dom@15.3.2

npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "react" "react-dom" "--save"
npm ERR! node v5.4.0
npm ERR! npm  v3.3.12
npm ERR! path /Users/MyUser/Projects/tktswp/node_modules/react-scripts/node_modules/babel-plugin-transform-es2015-unicode-regex/node_modules/regexpu-core
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/Users/MyUser/Projects/tktswp/node_modules/react-scripts/node_modules/babel-plugin-transform-es2015-unicode-regex/node_modules/regexpu-core' -> '/Users/MyUser/Projects/tktswp/node_modules/react-scripts/node_modules/babel-preset-es2015/node_modules/regexpu-core'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/MyUser/Projects/tktswp/npm-debug.log
`npm install react react-dom --save` failed

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
gaearoncommented, Sep 30, 2016

If only somebody wrote a reliable npm client! 🐈

1reaction
gaearoncommented, Oct 3, 2016

@TonyStarkBy

This is not exactly unexpected given all other reports with 3.3.12 in this issue πŸ˜‰ . There is nothing we can fix here as it’s an npm bug. Please update npm to the most recent stable version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install --no-audit --save --save-exact --loglevel error react ...
Run the following commands: Run npm cache clean --force. Then Run npx create-react-app (project name)
Read more >
command failed: npm install --save --save-exact react-native ...
The solution for ” Command `npm install –save –save-exact react-native` failed ” can be found here. The following code will assist you in...
Read more >
react-modal - npm
Start using react-modal in your project by running `npm i react-modal`. There are 2493 other projects in the npm registry using react-modal.
Read more >
react-dom - npm
Start using react-dom in your project by running `npm i react-dom`. There are 70036 other projects in the npm registry using react-dom.
Read more >
react-router-dom - npm
Declarative routing for React web applications. Latest version: 6.6.1, last published: 5 days ago. Start using react-router-dom in yourΒ ...
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