I'm trying to use npm install
to install a package but I keep getting below error.
I tried updating and downloading again from root but nothing seems to work.
hackathonday1-2 git:(save-button) ✗ npm install file-saver --save
npm WARN checkPermissions Missing write access to /home/salman/node_modules/axios npm WARN checkPermissions Missing write access to /home/salman/node_modules/coffeescript npm WARN checkPermissions Missing write access to /home/salman/node_modules/coffee-script npm WARN checkPermissions Missing write access to /home/salman/node_modules/file-saver npm WARN checkPermissions Missing write access to /home/salman/node_modules/materialize-css npm WARN enoent ENOENT: no such file or directory, open '/home/salman/package.json' npm WARN salman No description npm WARN salman No repository field. npm WARN salman No README data npm WARN salman No license field.
npm ERR! code EACCES npm ERR! syscall access npm ERR! path /home/salman/node_modules/axios npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/home/salman/node_modules/axios' npm ERR! [Error: EACCES: permission denied, access '/home/salman/node_modules/axios'] { npm ERR! stack: "Error: EACCES: permission denied, access '/home/salman/node_modules/axios'", npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/home/salman/node_modules/axios' 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/salman/.npm/_logs/2019-09-24T03_37_30_909Z-debug.log