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

npm install failed #39

Open
joeytat opened this issue Jun 1, 2020 · 1 comment
Open

npm install failed #39

joeytat opened this issue Jun 1, 2020 · 1 comment

Comments

@joeytat
Copy link

joeytat commented Jun 1, 2020

running npm install prints out "Cannot read property 'match' of undefined"

17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ └── [email protected]
17 silly saveTree │ └── [email protected]
17 silly saveTree ├─┬ [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ └─┬ [email protected]
17 silly saveTree │ │   ├── [email protected]
17 silly saveTree │ │   └─┬ [email protected]
17 silly saveTree │ │     └── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ └── [email protected]
17 silly saveTree │ │ └── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ └── [email protected]
17 silly saveTree ├─┬ [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ ├── [email protected]
17 silly saveTree │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ └── [email protected]
17 silly saveTree │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ └── [email protected]
17 silly saveTree │ │ ├── [email protected]
17 silly saveTree │ │ └─┬ [email protected]
17 silly saveTree │ │   ├── [email protected]
17 silly saveTree │ │   └── [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ └── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ ├── [email protected]
17 silly saveTree │ │ └── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ └── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ └── [email protected]
17 silly saveTree │ │ └── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ └── [email protected]
17 silly saveTree ├── [email protected]
17 silly saveTree ├─┬ [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ ├── [email protected]
17 silly saveTree │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ └── [email protected]
17 silly saveTree │ │ │ └── [email protected]
17 silly saveTree │ │ └── [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ ├── [email protected]
17 silly saveTree │ │ │ │ ├── [email protected]
17 silly saveTree │ │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ ├── [email protected]
17 silly saveTree │ │ │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ │ └── [email protected]
17 silly saveTree │ │ │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ │ ├── [email protected]
17 silly saveTree │ │ │ │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ │ │ └─┬ [email protected]
17 silly saveTree │ │ │ │ │ │ │   └── [email protected]
17 silly saveTree │ │ │ │ │ │ └── [email protected]
17 silly saveTree │ │ │ │ │ ├── [email protected]
17 silly saveTree │ │ │ │ │ └── [email protected]
17 silly saveTree │ │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ └─┬ [email protected]
17 silly saveTree │ │ │ │ │   ├─┬ [email protected]
17 silly saveTree │ │ │ │ │   │ └── [email protected]
17 silly saveTree │ │ │ │ │   ├── [email protected]
17 silly saveTree │ │ │ │ │   └── [email protected]
17 silly saveTree │ │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ ├── [email protected]
17 silly saveTree │ │ │ │ │ └─┬ [email protected]
17 silly saveTree │ │ │ │ │   └── [email protected]
17 silly saveTree │ │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ │ └─┬ [email protected]
17 silly saveTree │ │ │ │ │ │   ├── [email protected]
17 silly saveTree │ │ │ │ │ │   └── [email protected]
17 silly saveTree │ │ │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ │ │ └── [email protected]
17 silly saveTree │ │ │ │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ │ │ └─┬ [email protected]
17 silly saveTree │ │ │ │ │ │ │   ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ │ │   │ └── [email protected]
17 silly saveTree │ │ │ │ │ │ │   ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ │ │   │ └── [email protected]
17 silly saveTree │ │ │ │ │ │ │   └── [email protected]
17 silly saveTree │ │ │ │ │ │ ├── [email protected]
17 silly saveTree │ │ │ │ │ │ ├── [email protected]
17 silly saveTree │ │ │ │ │ │ └── [email protected]
17 silly saveTree │ │ │ │ │ ├── [email protected]
17 silly saveTree │ │ │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ │ └── [email protected]
17 silly saveTree │ │ │ │ │ └── [email protected]
17 silly saveTree │ │ │ │ ├── [email protected]
17 silly saveTree │ │ │ │ ├── [email protected]
17 silly saveTree │ │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ │ ├── [email protected]
17 silly saveTree │ │ │ │ │ └── [email protected]
17 silly saveTree │ │ │ │ ├── [email protected]
17 silly saveTree │ │ │ │ └── [email protected]
17 silly saveTree │ │ │ └─┬ [email protected]
17 silly saveTree │ │ │   └── [email protected]
17 silly saveTree │ │ ├── [email protected]
17 silly saveTree │ │ ├── [email protected]
17 silly saveTree │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ ├── [email protected]
17 silly saveTree │ │ │ └─┬ [email protected]
17 silly saveTree │ │ │   ├── [email protected]
17 silly saveTree │ │ │   ├─┬ [email protected]
17 silly saveTree │ │ │   │ └── [email protected]
17 silly saveTree │ │ │   ├─┬ [email protected]
17 silly saveTree │ │ │   │ ├─┬ [email protected]
17 silly saveTree │ │ │   │ │ └── [email protected]
17 silly saveTree │ │ │   │ ├─┬ [email protected]
17 silly saveTree │ │ │   │ │ └── [email protected]
17 silly saveTree │ │ │   │ └── [email protected]
17 silly saveTree │ │ │   ├─┬ [email protected]
17 silly saveTree │ │ │   │ ├── [email protected]
17 silly saveTree │ │ │   │ └─┬ [email protected]
17 silly saveTree │ │ │   │   ├── [email protected]
17 silly saveTree │ │ │   │   └── [email protected]
17 silly saveTree │ │ │   ├─┬ [email protected]
17 silly saveTree │ │ │   │ ├─┬ [email protected]
17 silly saveTree │ │ │   │ │ └─┬ [email protected]
17 silly saveTree │ │ │   │ │   └─┬ [email protected]
17 silly saveTree │ │ │   │ │     ├── [email protected]
17 silly saveTree │ │ │   │ │     └── [email protected]
17 silly saveTree │ │ │   │ └── [email protected]
17 silly saveTree │ │ │   ├─┬ [email protected]
17 silly saveTree │ │ │   │ ├─┬ [email protected]
17 silly saveTree │ │ │   │ │ ├── [email protected]
17 silly saveTree │ │ │   │ │ └─┬ [email protected]
17 silly saveTree │ │ │   │ │   ├── [email protected]
17 silly saveTree │ │ │   │ │   ├── [email protected]
17 silly saveTree │ │ │   │ │   ├── [email protected]
17 silly saveTree │ │ │   │ │   ├── [email protected]
17 silly saveTree │ │ │   │ │   ├── [email protected]
17 silly saveTree │ │ │   │ │   ├── [email protected]
17 silly saveTree │ │ │   │ │   └── [email protected]
17 silly saveTree │ │ │   │ ├── [email protected]
17 silly saveTree │ │ │   │ ├─┬ [email protected]
17 silly saveTree │ │ │   │ │ ├── [email protected]
17 silly saveTree │ │ │   │ │ ├── [email protected]
17 silly saveTree │ │ │   │ │ ├── [email protected]
17 silly saveTree │ │ │   │ │ ├── [email protected]
17 silly saveTree │ │ │   │ │ ├─┬ [email protected]
17 silly saveTree │ │ │   │ │ │ ├── [email protected]
17 silly saveTree │ │ │   │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │   │ │ │ │ └── [email protected]
17 silly saveTree │ │ │   │ │ │ └─┬ [email protected]
17 silly saveTree │ │ │   │ │ │   └── [email protected]
17 silly saveTree │ │ │   │ │ ├── [email protected]
17 silly saveTree │ │ │   │ │ └── [email protected]
17 silly saveTree │ │ │   │ └── [email protected]
17 silly saveTree │ │ │   ├─┬ [email protected]
17 silly saveTree │ │ │   │ ├── [email protected]
17 silly saveTree │ │ │   │ ├── [email protected]
17 silly saveTree │ │ │   │ ├── [email protected]
17 silly saveTree │ │ │   │ └── [email protected]
17 silly saveTree │ │ │   ├─┬ [email protected]
17 silly saveTree │ │ │   │ └─┬ [email protected]
17 silly saveTree │ │ │   │   ├── [email protected]
17 silly saveTree │ │ │   │   ├─┬ [email protected]
17 silly saveTree │ │ │   │   │ ├─┬ [email protected]
17 silly saveTree │ │ │   │   │ │ └── [email protected]
17 silly saveTree │ │ │   │   │ └── [email protected]
17 silly saveTree │ │ │   │   ├── [email protected]
17 silly saveTree │ │ │   │   └── [email protected]
17 silly saveTree │ │ │   ├── [email protected]
17 silly saveTree │ │ │   └─┬ [email protected]
17 silly saveTree │ │ │     ├── [email protected]
17 silly saveTree │ │ │     ├─┬ [email protected]
17 silly saveTree │ │ │     │ └─┬ [email protected]
17 silly saveTree │ │ │     │   └── [email protected]
17 silly saveTree │ │ │     ├── [email protected]
17 silly saveTree │ │ │     ├── [email protected]
17 silly saveTree │ │ │     └── [email protected]
17 silly saveTree │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ │ └── [email protected]
17 silly saveTree │ │ │ └── [email protected]
17 silly saveTree │ │ ├── [email protected]
17 silly saveTree │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ └── [email protected]
17 silly saveTree │ │ ├── [email protected]
17 silly saveTree │ │ ├── [email protected]
17 silly saveTree │ │ └─┬ [email protected]
17 silly saveTree │ │   ├── [email protected]
17 silly saveTree │ │   └─┬ [email protected]
17 silly saveTree │ │     ├── [email protected]
17 silly saveTree │ │     ├── [email protected]
17 silly saveTree │ │     └── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ └─┬ [email protected]
17 silly saveTree │   └─┬ [email protected]
17 silly saveTree │     ├── [email protected]
17 silly saveTree │     └── [email protected]
17 silly saveTree ├─┬ [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ └─┬ [email protected]
17 silly saveTree │ │   ├── [email protected]
17 silly saveTree │ │   └── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ └─┬ [email protected]
17 silly saveTree │ │ │   └── [email protected]
17 silly saveTree │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ └── [email protected]
17 silly saveTree │ │ ├── [email protected]
17 silly saveTree │ │ ├── [email protected]
17 silly saveTree │ │ ├── [email protected]
17 silly saveTree │ │ └── [email protected]
17 silly saveTree │ └── [email protected]
17 silly saveTree ├─┬ [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ ├── [email protected]
17 silly saveTree │ │ └── [email protected]
17 silly saveTree │ └─┬ [email protected]
17 silly saveTree │   └─┬ [email protected]
17 silly saveTree │     ├─┬ [email protected]
17 silly saveTree │     │ ├── [email protected]
17 silly saveTree │     │ ├── [email protected]
17 silly saveTree │     │ ├─┬ [email protected]
17 silly saveTree │     │ │ ├─┬ [email protected]
17 silly saveTree │     │ │ │ ├── [email protected]
17 silly saveTree │     │ │ │ └── [email protected]
17 silly saveTree │     │ │ └── [email protected]
17 silly saveTree │     │ └── [email protected]
17 silly saveTree │     ├── [email protected]
17 silly saveTree │     └─┬ [email protected]
17 silly saveTree │       ├── [email protected]
17 silly saveTree │       ├── [email protected]
17 silly saveTree │       └── [email protected]
17 silly saveTree ├─┬ [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ └── [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ ├── [email protected]
17 silly saveTree │ │ ├─┬ [email protected]
17 silly saveTree │ │ │ └── [email protected]
17 silly saveTree │ │ └── [email protected]
17 silly saveTree │ ├── [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ └── [email protected]
17 silly saveTree │ └─┬ [email protected]
17 silly saveTree │   ├── [email protected]
17 silly saveTree │   └─┬ [email protected]
17 silly saveTree │     └── [email protected]
17 silly saveTree ├─┬ [email protected]
17 silly saveTree │ ├─┬ [email protected]
17 silly saveTree │ │ ├── [email protected]
17 silly saveTree │ │ └── [email protected]
17 silly saveTree │ └─┬ [email protected]
17 silly saveTree │   ├── [email protected]
17 silly saveTree │   ├── [email protected]
17 silly saveTree │   └─┬ [email protected]
17 silly saveTree │     ├── [email protected]
17 silly saveTree │     ├── [email protected]
17 silly saveTree │     └── [email protected]
17 silly saveTree └─┬ [email protected]
17 silly saveTree   ├─┬ [email protected]
17 silly saveTree   │ ├─┬ [email protected]
17 silly saveTree   │ │ ├─┬ [email protected]
17 silly saveTree   │ │ │ └─┬ [email protected]
17 silly saveTree   │ │ │   └─┬ [email protected]
17 silly saveTree   │ │ │     └── [email protected]
17 silly saveTree   │ │ ├── [email protected]
17 silly saveTree   │ │ ├─┬ [email protected]
17 silly saveTree   │ │ │ ├── [email protected]
17 silly saveTree   │ │ │ └── [email protected]
17 silly saveTree   │ │ └─┬ [email protected]
17 silly saveTree   │ │   ├─┬ [email protected]
17 silly saveTree   │ │   │ └── [email protected]
17 silly saveTree   │ │   └── [email protected]
17 silly saveTree   │ └─┬ [email protected]
17 silly saveTree   │   └── [email protected]
17 silly saveTree   └── [email protected]
18 verbose stack TypeError: Cannot read property 'match' of undefined
18 verbose stack     at tarballToVersion (/usr/local/lib/node_modules/npm/lib/install/inflate-shrinkwrap.js:87:20)
18 verbose stack     at inflatableChild (/usr/local/lib/node_modules/npm/lib/install/inflate-shrinkwrap.js:99:22)
18 verbose stack     at /usr/local/lib/node_modules/npm/lib/install/inflate-shrinkwrap.js:55:12
18 verbose stack     at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
18 verbose stack     at Object.gotValue (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/reduce.js:155:18)
18 verbose stack     at Object.gotAccum (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/reduce.js:144:25)
18 verbose stack     at Object.tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
18 verbose stack     at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:517:31)
18 verbose stack     at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:574:18)
18 verbose stack     at Promise._settlePromise0 (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:619:10)
18 verbose stack     at Promise._settlePromises (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:699:18)
18 verbose stack     at _drainQueueStep (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:138:12)
18 verbose stack     at _drainQueue (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:131:9)
18 verbose stack     at Async._drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:147:5)
18 verbose stack     at Immediate.Async.drainQueues [as _onImmediate] (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
18 verbose stack     at processImmediate (internal/timers.js:456:21)
19 verbose cwd /Users/yu.wang/Documents/Workspace/webpack-workshop
20 verbose Darwin 19.3.0
21 verbose argv "/usr/local/Cellar/node/14.3.0/bin/node" "/usr/local/bin/npm" "install"
22 verbose node v14.3.0
23 verbose npm  v6.14.4
24 error Cannot read property 'match' of undefined
25 verbose exit [ 1, true ]
@1hassanm
Copy link

1hassanm commented Jun 2, 2020

@joeytat Deleting lock file and node_modules folder solved this issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants