JamieMason / JamieMason/shrinkpack

failed to read contents of npm cache

Open
#97 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
800
Forks
27
PR merge metrics
No merged PRs in 30d

Description

## Description

Error: ! failed to read contents of npm cache
at ChildProcess.onClose (/Users/.../.../.../.../.../node_modules/shrinkpack/src/analyse/read-npm-cache.js:40:25)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Socket.stream.socket.on (internal/child_process.js:336:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:561:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! harmony@1.0.0 postshrinkwrap: `shrinkpack && node ./bin/zipTarballs.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the harmony@1.0.0 postshrinkwrap script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

## Suggested Solution

## Help Needed

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with node_modules/shrinkpack/src/analyse/read-npm-cache.js at line 40 and the postshrinkwrap command shown in the report. Reproduction steps, environment details, and expected behavior are missing, so establish those first; done means the reported npm-cache workflow no longer fails and the case is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.