No space left on device


#1

I only have several Node dependencies, and it’s out of space. I’ve waited half a day, but not yet resolved. Have I actually hit the 128MB limit or is there some leftover cache taking space?

npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.0 (node_modules/standard-format/node_modules/minimist):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: standard-format@2.2.4 (node_modules/standard-format):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: semistandard-format@3.0.0 (node_modules/semistandard-format):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: browserify@14.1.0 (node_modules/watchify/node_modules/browserify):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: doctrine@0.6.4 (node_modules/semi/node_modules/doctrine):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.0 (node_modules/semistandard-format/node_modules/minimist):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.0 (node_modules/subarg/node_modules/minimist):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.0 (node_modules/standard-engine/node_modules/minimist):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.0 (node_modules/budo/node_modules/minimist):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: rx@2.5.3 (node_modules/rx):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esprima@1.0.4 (node_modules/esformatter-literal-notation/node_modules/esprima):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: js-beautify@1.6.4 (node_modules/js-beautify):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: browser-pack@6.0.2 (node_modules/browser-pack):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: insert-module-globals@7.0.1 (node_modules/insert-module-globals):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: readable-stream@2.2.6 (node_modules/insert-module-globals/node_modules/through2/node_modules/readable-stream):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: eslint@0.24.1 (node_modules/semi/node_modules/eslint):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: lodash@3.10.1 (node_modules/semi/node_modules/lodash):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: iconv-lite@0.4.13 (node_modules/raw-body/node_modules/iconv-lite):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: iconv-lite@0.4.13 (node_modules/body-parser/node_modules/iconv-lite):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: eslint@2.13.1 (node_modules/semistandard/node_modules/eslint):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sha.js@2.4.8 (node_modules/shasum/node_modules/sha.js):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mout@1.0.0 (node_modules/mout):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: shelljs@0.6.1 (node_modules/semistandard/node_modules/shelljs):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: q-io@1.13.2 (node_modules/q-io):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: buffer@5.0.5 (node_modules/watchify/node_modules/buffer):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: tiny-lr@0.2.1 (node_modules/tiny-lr):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: collections@0.2.2 (node_modules/collections):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: readable-stream@2.0.6 (node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: syntax-error@1.3.0 (node_modules/syntax-error):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: browserify@13.3.0 (node_modules/browserify):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: lexical-scope@1.2.0 (node_modules/lexical-scope):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: semistandard@8.0.0 (node_modules/semistandard):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write
10:35 AM
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: disparity@2.0.0 (node_modules/disparity):
10:35 AM
npm WARN nospc SKIPPING OPTIONAL DEPENDENCY: ENOSPC: no space left on device, write

#2

Yes, remixing your app and taking a look at the console shows that the app space is full. Although you’ve only added a few dependencies, they themselves add some too. For example, react-scripts adds ~600. Perhaps there’s a more lightweight alternative you can switch it out for?


#3

one thing you can also try to figure out which of your dependencies is pulling in too many dependencies is to remove dependencies one at a time from your package.json and observe the logs to see if removing one fixes the problem.

After you’ve identified which dependency is too fat, you may simply be able to find a slimmer alternative.

One thing that works for me is going to the npm page for a dependency you’re thinking of adding and seeing which dependencies it has.


#4

Thanks! I saw one of my deps should have been putting their deps in devDeps, but I’ve had it patched and published since.