DEV Community 👩‍💻👨‍💻

mostafalaravel
mostafalaravel

Posted on

run npm update without sudo

Hello,

When I run npm update or npm install it asks me the permission :

 npm update
npm WARN checkPermissions Missing write access to /data/www/helloworls.com/node_modules/sass
npm WARN checkPermissions Missing write access to /data/www/helloworls.com/node_modules
npm WARN checkPermissions Missing write access to /data/www/helloworls.com/node_modules/laravel-mix/node_modules
npm WARN checkPermissions Missing write access to /data/www/helloworls.com/node_modules/watchpack-chokidar2/node_modules
npm WARN checkPermissions Missing write access to /data/www/helloworls.com/node_modules/webpack-dev-server/node_modules
npm WARN The package bootstrap is included as both a dev and production dependency.
npm WARN The package vue is included as both a dev and production dependency.

npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /data/www/helloworls.com/node_modules/sass
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/data/www/helloworls.com/node_modules/sass'
npm ERR!  { [Error: EACCES: permission denied, access '/data/www/helloworls.com/node_modules/sass']
npm ERR!   stack:
npm ERR!    'Error: EACCES: permission denied, access \'/data/www/helloworls.com/node_modules/sass\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/data/www/helloworls.com/node_modules/sass' }
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/mabdellaoui/.npm/_logs/2020-12-07T10_35_21_993Z-debug.log

Enter fullscreen mode Exit fullscreen mode


`

should I change some permissions ?

Top comments (0)

We want your help! Become a Tag Moderator.
Fill out this survey and help us moderate our community by becoming a tag moderator here at DEV.