$npm install -g firebase-toolsをやったところエラーがでてインストールできなかった
対策を調べたところQiitaにのっていた方法で下のような方法があったので試してみた
だがこのようにやっても解決しなかった
その解決方法を知りたいです
別件ですが$npm install -gができないのならreaxctもできないのかと思い
$npm install -g create-react-app を試してみたが問題なくできた
どうしたらできるのか知りたいです。。。
どのようなエラーが出ましたか?
こんなのです
npm WARN checkPermissions Missing write access to /Users/hiro57/.npm-global/lib/node_modules/firebase-tools
npm WARN checkPermissions Missing write access to /Users/hiro57/.npm-global/lib/node_modules/firebase-tools/node_modules
npm ERR! path /Users/hiro57/.npm-global/lib/node_modules/firebase-tools
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/Users/hiro57/.npm-global/lib/node_modules/firebase-tools'
npm ERR! { [Error: EACCES: permission denied, access '/Users/hiro57/.npm-global/lib/node_modules/firebase-tools']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access \'/Users/hiro57/.npm-global/lib/node_modules/firebase-tools\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/Users/hiro57/.npm-global/lib/node_modules/firebase-tools' }
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! /Users/hiro57/.npm/_logs/2019-04-15T05_07_04_076Z-debug.log
satouhiroshitonoMacBook-ea:hello-firebase hiro57$
あなたの回答
tips
プレビュー