npm install -g ethereumjs-testrpc
not working it is showing error
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/ethereumjs-testrpc' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/ethereumjs-testrpc'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules/ethereumjs-testrpc' } 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/user/npm-debug.log
npm install -g
to affect the/usr/local/lib/node_modules
directory, it needs to be running as a user that has write access to that folder. Prefixing the command withsudo
will ensure this happens. – ctt