npm install -g yo
を実行したら以下のようなエラーが出ます。
どう対処すれば良いでしょうか。
terminal
1npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead 2npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules 3npm ERR! path /usr/local/lib/node_modules 4npm ERR! code EACCES 5npm ERR! errno -13 6npm ERR! syscall access 7npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' 8npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] 9npm ERR! stack: 10npm ERR! 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules\'', 11npm ERR! errno: -13, 12npm ERR! code: 'EACCES', 13npm ERR! syscall: 'access', 14npm ERR! path: '/usr/local/lib/node_modules' } 15npm ERR! 16npm ERR! The operation was rejected by your operating system. 17npm ERR! It is likely you do not have the permissions to access this file as the current user 18npm ERR! 19npm ERR! If you believe this might be a permissions issue, please double-check the 20npm ERR! permissions of the file and its containing directories, or try running 21npm ERR! the command again as root/Administrator (though this is not recommended). 22 23npm ERR! A complete log of this run can be found in: 24npm ERR! /Users/yutanakai/.npm/_logs/2019-10-19T16_10_01_408Z-debug.log
タイトルが "nmp" になってるので修正お願いします
回答2件
あなたの回答
tips
プレビュー