terminalで以下のようにインストールのコマンドを入力しましたが、
エラーになってしまいます。
こちらどのような意味で、どうしたら改善できるのでしょうか?
当方terminalに不慣れで、恐縮ですがご教示いただければ幸いです。
どうぞよろしくお願いいたします。
npm install -g node-sass
以下エラー↓
Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/.npm-global'
TypeError: Cannot read property 'get' of undefined
at errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:78:20
at cb (/usr/local/lib/node_modules/npm/lib/npm.js:228:22)
at /usr/local/lib/node_modules/npm/lib/npm.js:266:24
at /usr/local/lib/node_modules/npm/lib/config/core.js:83:7
at Array.forEach (<anonymous>)
at /usr/local/lib/node_modules/npm/lib/config/core.js:82:13
at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)
at afterExtras (/usr/local/lib/node_modules/npm/lib/config/core.js:173:20)
at /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53
/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:205
if (npm.config.get('json')) {
^
TypeError: Cannot read property 'get' of undefined
at process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
at process.emit (events.js:182:13)
at process._fatalException (internal/bootstrap/node.js:494:27)
satouerinoMacBook-puro:~ erisato$ permission denied, mkdir '/usr/local/lib/node_modules/.npm-global
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。