create-react-app: Cannot find require-from-string@^1.1.0 issue
Is this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
I have tried npm 4.6.1 with the same issue.
Which terms did you search for in User Guide?
Environment
node -v
: 8.9.1npm -v
: 4.6.1yarn --version
(if you use Yarn):npm ls react-scripts
(if you haven’t ejected):
Then, specify:
- Operating system: windows 10
- Browser and version (if relevant):
Steps to Reproduce
(Write your steps here:)
npm install -g create-react-app
create-react-app react-app
Expected Behavior
It will create a folder.
Actual Behavior
It will throw the following error:
Creating a new React app in C:\Users\somepath\react-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
npm ERR! code ETARGET
npm ERR! notarget No compatible version found: require-from-string@^1.1.0
npm ERR! notarget Valid install targets:
npm ERR! notarget 2.0.2
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'cosmiconfig'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\me\AppData\Roaming\npm-cache\_logs\2018-01-06T19_33_16_386Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.
Deleting generated file... package.json
Deleting react-app / from C:\somepath
Done.
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 15
- Comments: 20