Closed
Description
$ create-react-app test
Creating a new React app in /Users/xxx/test.
Installing packages. This might take a couple minutes.
Installing react-scripts from npm...
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/6.2.2/bin/node" "/usr/local/bin/npm" "install" "--save-dev" "--save-exact" "react-scripts"
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! shasum check failed for /var/folders/_6/rnh6z_cn1516lsclt4lg2hpw0000gn/T/npm-1637-b33afc83/registry.npmjs.org/react-scripts/-/react-scripts-0.2.1.tgz
npm ERR! Expected: 797bfa76b5e1967be3c41492c6563850bda0f07e
npm ERR! Actual: bfe90b2fdd6725deea1735c0dc7c6e12d59d67ab
npm ERR! From: https://registry.npmjs.org/react-scripts/-/react-scripts-0.2.1.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/xxx/test/npm-debug.log
`npm install --save-dev --save-exact react-scripts` failed
$ cat /Users/xxx/test/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/6.2.2/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '--save-dev',
1 verbose cli '--save-exact',
1 verbose cli 'react-scripts' ]
2 info using npm@3.9.5
3 info using node@v6.2.2
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData react-scripts
8 silly fetchNamedPackageData react-scripts
9 silly mapToRegistry name react-scripts
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry raw: 'react-scripts',
12 silly mapToRegistry scope: null,
12 silly mapToRegistry name: 'react-scripts',
12 silly mapToRegistry rawSpec: '',
12 silly mapToRegistry spec: 'latest',
12 silly mapToRegistry type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/react-scripts
14 verbose request uri https://registry.npmjs.org/react-scripts
15 verbose request no auth needed
16 info attempt registry request try #1 at 3:30:41 PM
17 verbose request using bearer token for auth
18 verbose request id 22b08c9a56062669
19 verbose etag "19Y3JGDMHUTFTRTMEJ2SH5S39"
20 http request GET https://registry.npmjs.org/react-scripts
21 http 304 https://registry.npmjs.org/react-scripts
22 verbose headers { 'cache-control': 'max-age=300',
22 verbose headers 'accept-ranges': 'bytes',
22 verbose headers date: 'Sat, 06 Aug 2016 07:30:46 GMT',
22 verbose headers via: '1.1 varnish',
22 verbose headers connection: 'keep-alive',
22 verbose headers 'x-served-by': 'cache-lcy1126-LCY',
22 verbose headers 'x-cache': 'MISS',
22 verbose headers 'x-cache-hits': '0',
22 verbose headers 'x-timer': 'S1470468646.624967,VS0,VE86',
22 verbose headers vary: 'Accept-Encoding' }
23 silly get cb [ 304,
23 silly get { 'cache-control': 'max-age=300',
23 silly get 'accept-ranges': 'bytes',
23 silly get date: 'Sat, 06 Aug 2016 07:30:46 GMT',
23 silly get via: '1.1 varnish',
23 silly get connection: 'keep-alive',
23 silly get 'x-served-by': 'cache-lcy1126-LCY',
23 silly get 'x-cache': 'MISS',
23 silly get 'x-cache-hits': '0',
23 silly get 'x-timer': 'S1470468646.624967,VS0,VE86',
23 silly get vary: 'Accept-Encoding' } ]
24 verbose etag https://registry.npmjs.org/react-scripts from cache
25 verbose get saving react-scripts to /Users/xxx/.npm/registry.npmjs.org/react-scripts/.cache.json
26 verbose correctMkdir /Users/xxx/.npm correctMkdir not in flight; initializing
27 silly install normalizeTree
28 silly loadCurrentTree Finishing
29 silly loadIdealTree Starting
30 silly install loadIdealTree
31 silly cloneCurrentTree Starting
32 silly install cloneCurrentTreeToIdealTree
33 silly cloneCurrentTree Finishing
34 silly loadShrinkwrap Starting
35 silly install loadShrinkwrap
36 silly loadShrinkwrap Finishing
37 silly loadAllDepsIntoIdealTree Starting
38 silly install loadAllDepsIntoIdealTree
39 silly resolveWithNewModule react-scripts@0.2.1 checking installable status
40 silly cache add args [ 'react-scripts', null ]
41 verbose cache add spec react-scripts
42 silly cache add parsed spec Result {
42 silly cache add raw: 'react-scripts',
42 silly cache add scope: null,
42 silly cache add name: 'react-scripts',
42 silly cache add rawSpec: '',
42 silly cache add spec: 'latest',
42 silly cache add type: 'tag' }
43 silly addNamed react-scripts@latest
44 verbose addNamed "latest" is being treated as a dist-tag for react-scripts
45 info addNameTag [ 'react-scripts', 'latest' ]
46 silly mapToRegistry name react-scripts
47 silly mapToRegistry using default registry
48 silly mapToRegistry registry https://registry.npmjs.org/
49 silly mapToRegistry data Result {
49 silly mapToRegistry raw: 'react-scripts',
49 silly mapToRegistry scope: null,
49 silly mapToRegistry name: 'react-scripts',
49 silly mapToRegistry rawSpec: '',
49 silly mapToRegistry spec: 'latest',
49 silly mapToRegistry type: 'tag' }
50 silly mapToRegistry uri https://registry.npmjs.org/react-scripts
51 verbose addNameTag registry:https://registry.npmjs.org/react-scripts not in flight; fetching
52 verbose get https://registry.npmjs.org/react-scripts not expired, no request
53 silly addNameTag next cb for react-scripts with tag latest
54 silly addNamed react-scripts@0.2.1
55 verbose addNamed "0.2.1" is a plain semver version for react-scripts
56 silly mapToRegistry name react-scripts
57 silly mapToRegistry using default registry
58 silly mapToRegistry registry https://registry.npmjs.org/
59 silly mapToRegistry data Result {
59 silly mapToRegistry raw: 'react-scripts',
59 silly mapToRegistry scope: null,
59 silly mapToRegistry name: 'react-scripts',
59 silly mapToRegistry rawSpec: '',
59 silly mapToRegistry spec: 'latest',
59 silly mapToRegistry type: 'tag' }
60 silly mapToRegistry uri https://registry.npmjs.org/react-scripts
61 verbose addRemoteTarball https://registry.npmjs.org/react-scripts/-/react-scripts-0.2.1.tgz not in flight; adding
62 verbose addRemoteTarball [ 'https://registry.npmjs.org/react-scripts/-/react-scripts-0.2.1.tgz',
62 verbose addRemoteTarball '797bfa76b5e1967be3c41492c6563850bda0f07e' ]
63 info retry fetch attempt 1 at 3:30:46 PM
64 info attempt registry request try #1 at 3:30:46 PM
65 http fetch GET https://registry.npmjs.org/react-scripts/-/react-scripts-0.2.1.tgz
66 verbose request using bearer token for auth
67 http fetch 200 https://registry.npmjs.org/react-scripts/-/react-scripts-0.2.1.tgz
68 silly fetchAndShaCheck shasum 797bfa76b5e1967be3c41492c6563850bda0f07e
69 silly rollbackFailedOptional Starting
70 silly rollbackFailedOptional Finishing
71 silly runTopLevelLifecycles Starting
72 silly runTopLevelLifecycles Finishing
73 silly install printInstalled
74 verbose stack Error: shasum check failed for /var/folders/_6/rnh6z_cn1516lsclt4lg2hpw0000gn/T/npm-1637-b33afc83/registry.npmjs.org/react-scripts/-/react-scripts-0.2.1.tgz
74 verbose stack Expected: 797bfa76b5e1967be3c41492c6563850bda0f07e
74 verbose stack Actual: bfe90b2fdd6725deea1735c0dc7c6e12d59d67ab
74 verbose stack From: https://registry.npmjs.org/react-scripts/-/react-scripts-0.2.1.tgz
74 verbose stack at /usr/local/lib/node_modules/npm/node_modules/sha/index.js:25:8
74 verbose stack at ReadStream.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/sha/index.js:72:7)
74 verbose stack at emitNone (events.js:91:20)
74 verbose stack at ReadStream.emit (events.js:185:7)
74 verbose stack at endReadableNT (_stream_readable.js:934:12)
74 verbose stack at _combinedTickCallback (internal/process/next_tick.js:74:11)
74 verbose stack at process._tickCallback (internal/process/next_tick.js:98:9)
75 verbose cwd /Users/xxx/test
76 error Darwin 15.6.0
77 error argv "/usr/local/Cellar/node/6.2.2/bin/node" "/usr/local/bin/npm" "install" "--save-dev" "--save-exact" "react-scripts"
78 error node v6.2.2
79 error npm v3.9.5
80 error shasum check failed for /var/folders/_6/rnh6z_cn1516lsclt4lg2hpw0000gn/T/npm-1637-b33afc83/registry.npmjs.org/react-scripts/-/react-scripts-0.2.1.tgz
80 error Expected: 797bfa76b5e1967be3c41492c6563850bda0f07e
80 error Actual: bfe90b2fdd6725deea1735c0dc7c6e12d59d67ab
80 error From: https://registry.npmjs.org/react-scripts/-/react-scripts-0.2.1.tgz
81 error If you need help, you may report this error at:
81 error <https://github.com/npm/npm/issues>
82 verbose exit [ 1, true ]
Activity
gaearon commentedon Aug 6, 2016
Try running
npm set registry https://registry.npmjs.org/ npm cache clear
and then try again.
This looks like an npm issue so we can’t really help—something looks messed up with your setup.
You can also try switching to an earlier npm version in case there’s some new bug.
gaearon commentedon Aug 9, 2016
I’m closing because this doesn’t appear relevant to our repo.
Merge pull request facebook#380 from codereviewvideos/patch-1