Global install fails for @superflycss/cli - Missing write access to node_modules/fsevents/node_modules/abbrev

(Ole Ersoy) #1

This fails:

git clone git@github.com:superflycss/cli.git

cd cli
npm i -g

This is the log:

486 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/abbrev
487 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/ansi-regex
488 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/aproba
489 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/balanced-match
490 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/chownr
491 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/code-point-at
492 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/concat-map
493 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/brace-expansion
494 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/console-control-strings
495 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/core-util-is
496 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/deep-extend
497 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/delegates
498 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/detect-libc
499 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/fs.realpath
500 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/has-unicode
501 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/inherits
502 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/ini
503 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/isarray
504 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/minimatch
505 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/ignore-walk
506 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/minimist
507 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/mkdirp
508 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/ms
509 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/debug
510 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/npm-bundled
511 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/npm-packlist
512 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/number-is-nan
513 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/is-fullwidth-code-point
514 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/object-assign
515 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/os-homedir
516 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/os-tmpdir
517 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/osenv
518 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/nopt
519 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/path-is-absolute
520 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/process-nextick-args
521 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/rc/node_modules/minimist
522 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/safe-buffer
523 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/safer-buffer
524 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/iconv-lite
525 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/sax
526 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/needle
527 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/semver
528 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/set-blocking
529 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/signal-exit
530 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/string_decoder
531 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/strip-ansi
532 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/string-width
533 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/strip-json-comments
534 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/rc
535 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/util-deprecate
536 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/readable-stream
537 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/are-we-there-yet
538 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/wide-align
539 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/gauge
540 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/npmlog
541 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/wrappy
542 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/once
543 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/inflight
544 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/glob
545 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/rimraf
546 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/yallist
547 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/minipass
548 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/fs-minipass
549 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/minizlib
550 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/tar
551 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/node-pre-gyp
552 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules
553 warn checkPermissions Missing write access to /home/ole/t2/cli/node_modules/fsevents/node_modules/rc/node_modules
554 timing stage:rollbackFailedOptional Completed in 1ms
555 timing stage:runTopLevelLifecycles Completed in 3371ms
556 verbose stack Error: ENOENT: no such file or directory, access ‘/home/ole/t2/cli/node_modules/fsevents/node_modules/abbrev’
557 verbose cwd /home/ole/t2/cli
558 verbose Linux 4.15.0-48-generic
559 verbose argv “/home/ole/.nvm/versions/node/v11.9.0/bin/node” “/home/ole/.nvm/versions/node/v11.9.0/bin/npm” “i” “-g”
560 verbose node v11.9.0
561 verbose npm v6.9.0
562 error path /home/ole/t2/cli/node_modules/fsevents/node_modules/abbrev
563 error code ENOENT
564 error errno -2
565 error syscall access
566 error enoent ENOENT: no such file or directory, access ‘/home/ole/t2/cli/node_modules/fsevents/node_modules/abbrev’
567 error enoent This is related to npm not being able to find a file.
568 verbose exit [ -2, true ]

Thoughts?

(Ole Ersoy) #2

It was fixed by first running npm uninstall -g and npm i -g again.