前提
udemyにてreactの勉強をしています。node-sassのインストールが必要だったのでインストールしようと試みたがインストールが出来ない.
■■な機能を実装中に以下のエラーメッセージが発生しました。
実現したいこと
node-sassのインストール
発生している問題・エラーメッセージ
npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/local/lib/node_modules/node-sass npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/node-sass' npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/node-sass'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/local/lib/node_modules/node-sass' npm ERR! } 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. npm ERR! A complete log of this run can be found in: npm ERR! /Users/○○○(パソコン所有者名前)/.npm/_logs/2022-08-29T12_24_43_969Z-debug-0.log
インストール実行コマンド
npm install -g node-sass
試したこと
qitta等を調べたがインストールうまく出来ず。

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。