Skip to content

Instantly share code, notes, and snippets.

@Northward-Design
Created December 22, 2020 23:34
Show Gist options
  • Save Northward-Design/c88ecdf2a9fe52f6e837bec48355c3e8 to your computer and use it in GitHub Desktop.
Save Northward-Design/c88ecdf2a9fe52f6e837bec48355c3e8 to your computer and use it in GitHub Desktop.
Cannot use global flag with npm install: ENOENT: No such file
input:
npm install --global gulp-cli
output:
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path /home/ivan/.npm/lib
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, lstat '/home/ivan/.npm/lib'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ivan/.npm/_logs/2020-12-22T22_24_07_095Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment