matano icon indicating copy to clipboard operation
matano copied to clipboard

EACCES error when installing the Matano CLI

Open niheconomoum opened this issue 2 years ago • 1 comments

I am running Ubuntu 20.04 on Windows via WSL 1.

I have installed node.js v12.22.12 via the NodeSource PPA per https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04.

Running make install per https://www.matano.dev/docs/installation, I get the following error:

npm WARN checkPermissions Missing write access to /usr/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules'
npm ERR!  [Error: EACCES: permission denied, access '/usr/lib/node_modules'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/lib/node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

The relevant NPM logs are attached.

2022-08-12T14_24_33_045Z-debug.log 2022-08-12T14_24_33_060Z-debug.log

niheconomoum avatar Aug 12 '22 14:08 niheconomoum

Hi, thanks for the issue, this is due to installing in the system node modules.

See the following for how to fix this issue: Resolving EACCES permissions errors when installing packages globally.

The repo is under heavy development and we'll be making significant changes in the next weeks. Feel free to join our Discord for updates.

Samrose-Ahmed avatar Aug 12 '22 15:08 Samrose-Ahmed

Closing as we now provide prebuilt binaries through a GitHub Release without a Node/NPM dependency. (#3)

Samrose-Ahmed avatar Aug 31 '22 11:08 Samrose-Ahmed