安装cnpm失败报错
报错信息
hua@hua-PC:~/vue$ npm install cnpm -g
npm WARN checkPermissions Missing write access to /usr/software/nodejs/lib/node_modules
npm ERR! path /usr/software/nodejs/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/software/nodejs/lib/node_modules'
npm ERR! { [Error: EACCES: permission denied, access '/usr/software/nodejs/lib/node_modules']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access \'/usr/software/nodejs/lib/node_modules\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/software/nodejs/lib/node_modules' }
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 permissio