Error installing Express on Ubuntu 16.04

0

I have seen a solution for this problem in Windows but it has not solved the problem in Ubuntu, I get the following code:

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules

npm ERR! path /usr/local/lib/node_modules

npm ERR! code EACCES

npm ERR! errno -13

npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/usr/local
/lib/node_modules'

npm ERR!  { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'

npm ERR!   stack: 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules\'',

npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/wilfred/.npm/_logs/2018-03-20T20_05_09_289Z-debug.log
    
asked by Wilfred 20.03.2018 в 21:13
source

0 answers