JamieMason / shrinkpack

Fast, resilient, reproducible builds with npm install.
https://www.npmjs.com/package/shrinkpack
MIT License
793 stars 38 forks source link

Error: ! failed to read contents of npm cache #95

Closed loujinliangdg closed 2 years ago

loujinliangdg commented 5 years ago

$ shrinkpack ! Please raise an issue at https://github.com/JamieMason/shrinkpack/issues

Error: ! failed to read contents of npm cache
    at ChildProcess.onClose (C:\Users\1\AppData\Roaming\npm\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 ChildProcess.cp.emit (C:\Users\1\AppData\Roaming\npm\node_modules\shrinkpack\node_modules\cross-spawn\lib\enoent.js:40:29)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
JamieMason commented 2 years ago

shrinkpack@0.19.0 has been released which adds support for npm 7 and up.