Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create-react-app failed #2616

Closed
forsakesoul opened this issue Jun 26, 2017 · 1 comment
Closed

create-react-app failed #2616

forsakesoul opened this issue Jun 26, 2017 · 1 comment

Comments

@forsakesoul
Copy link

Aborting installation.
npm install --save --save-exact react react-dom react-scripts has failed.
A complete log of this run
Log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '--save',
1 verbose cli '--save-exact',
1 verbose cli 'react',
1 verbose cli 'react-dom',
1 verbose cli 'react-scripts' ]
2 info using npm@5.0.0
3 info using node@v8.0.0
4 silly install loadCurrentTree
5 silly install readLocalPackageData
6 http fetch GET 304 https://registry.npmjs.org/react-dom 561ms (from cache)
7 silly pacote tag manifest for react-dom@latest fetched in 566ms
8 http fetch GET 304 https://registry.npmjs.org/react 739ms (from cache)
9 silly pacote tag manifest for react@latest fetched in 774ms
10 http fetch GET 304 https://registry.npmjs.org/react-scripts 834ms (from cache)
11 silly fetchPackageMetaData error for react-scripts@latest Unexpected end of input at 1:33645
11 silly fetchPackageMetaData e-react-app/blob/master/CHANGELOG.md","_hasShrinkwrap":false},"0.4.3-
11 silly fetchPackageMetaData ^
12 verbose stack SyntaxError: Unexpected end of input at 1:33645
12 verbose stack e-react-app/blob/master/CHANGELOG.md","_hasShrinkwrap":false},"0.4.3-
12 verbose stack ^
12 verbose stack at Object.parseJSON (/usr/local/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/node_modules/json-parse-helpfulerror/node_modules/jju/lib/parse.js:745:13)
12 verbose stack at parse (/usr/local/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/node_modules/json-parse-helpfulerror/index.js:10:13)
12 verbose stack at consumeBody.call.then.buffer (/usr/local/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/src/body.js:96:50)
12 verbose stack at
12 verbose stack at process._tickCallback (internal/process/next_tick.js:169:7)
13 verbose cwd /Users/liufucheng/Desktop/app-react-01
14 verbose Darwin 16.6.0
15 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "--save-exact" "react" "react-dom" "react-scripts"
16 verbose node v8.0.0
17 verbose npm v5.0.0
18 error Unexpected end of input at 1:33645
18 error e-react-app/blob/master/CHANGELOG.md","_hasShrinkwrap":false},"0.4.3-
18 error ^
19 verbose exit [ 1, true ]
thanks

@Timer
Copy link
Contributor

Timer commented Jun 26, 2017

Please read the issue template and downgrade to NPM 4.
NPM 5 has many bugs and should not be used yet.

You can downgrade by running: npm install -g npm@4.

@Timer Timer closed this as completed Jun 26, 2017
@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants