DEV Community

mostafalaravel
mostafalaravel

Posted on

1 2

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 ?

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post