npm WARN checkPermissions Missing write access to /home/hyper/.npm-global/lib/node_modules/yo npm WARN checkPermissions Missing write access to /home/hyper/.npm-global/lib/node_modules/yo/node_modules npm ERR! path /home/hyper/.npm-global/lib/node_modules/yo npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/home/hyper/.npm-global/lib/node_modules/yo' npm ERR! { Error: EACCES: permission denied, access '/home/hyper/.npm-global/lib/node_modules/yo' npm ERR! stack: 'Error: EACCES: permission denied, access \'/home/hyper/.npm-global/lib/node_modules/yo\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/home/hyper/.npm-global/lib/node_modules/yo' } 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 (though this is not recommended).
npm ERR! A complete log of this run can be found in: npm ERR! /home/hyper/.npm/_logs/2018-08-17T02_14_30_188Z-debug.log
에러 로그에 명시된 access 오류가 발생하는 디렉토리 권한 수정
1 2 3
$ sudo chown -R hyper /home/hyper/.npm-global $ npm cache clean -f npm WARN using --force I sure hope you know what you are doing.
Yeoman Doctor Running sanity checks on your system
✔ Global configuration file is valid ✔ NODE_PATH matches the npm root ✔ Node.js version ✔ No .bowerrc file in home directory ✔ No .yo-rc.json file in home directory ✔ npm version ✔ yo version
Everything looks all right! + yo@2.0.5 removed 1 package and updated 6 packages in 27.231s hyper@DESKTOP-BOKQP6N:~$