NPM is giving access issue #22
Description
--- Delete everything above this line ---
Description
Explain what you did, what you expected to happen, and what actually happens.
I was using CanvasDataCli in my local machine without any issues.
Now I am moving to a Linux server where I wanted to download the files and using an ETL tool load it to an Oracle Database.
My Linux admin is not giving me access to install node.js and run npm.
hence I asked them to follow instructions to install node and run canvas-data-cli npm ref: https://community.canvaslms.com/docs/DOC-6600-how-to-use-the-canvas-data-cli-tool .
they're getting following error
`[USER@SERVER]$ npm install -g canvas-data-cli
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
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! stack: "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.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/d_smalisetty/.npm/_logs/2020-03-24T20_03_48_113Z-debug.log
[USER@SERVER]$ npm -v
6.13.4
[USER@SERVER]$ node -v
v12.16.1
[USER@SERVER]`
Additional Information
- Node Version 12.6.1
- Platform:
[USER@SERVER]$ uname Linux [USER@SERVER]$ uname -r 3.10.0-1062.12.1.el7.x86_64
- Logs: (If you can please run the CLI with:
-l debug
and provide us the debug logs.)