ErrorCommand failed: npm install nodebb-plugin-google-analytics@0.5.9 --save npm WARN checkPermissions Missing write access to



  • I get this ERROR after clicking on INSTALL for "nodebb-plugin-google-analytics"

    ErrorCommand failed: npm install nodebb-plugin-google-analytics@0.5.9 --save npm WARN checkPermissions Missing write access to /home/jimmy/nodebb/node_modules npm ERR! Linux 4.4.0-112-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "nodebb-plugin-google-analytics@0.5.9" "--save" npm ERR! node v6.13.0 npm ERR! npm v3.10.10 npm ERR! path /home/jimmy/nodebb/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/home/jimmy/nodebb/node_modules' npm ERR! at Error (native) npm ERR! { Error: EACCES: permission denied, access '/home/jimmy/nodebb/node_modules' npm ERR! at Error (native) npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/home/jimmy/nodebb/node_modules' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! Please include the following file with any support request: npm ERR! /home/jimmy/nodebb/npm-debug.log


  • Admin

    npm doesn't have write access to the node_modules/ folder, probably because you ran it as root by accident, or something changed the permissions..

    Run chown -R jimmyc2018:jimmyc2018 ./node_modules to fix this. Replace your username with whatever your local username is on your system.



  • It worked! Thanks!


 

| |