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

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

About this issue

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

Most upvoted comments

If only somebody wrote a reliable npm client! 🐈

@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.

Can you update npm, delete node_modules and run npm install?

npm install -g npm@latest
rm -rf node_modules
npm install