Q&A
実現したいこと
LaravelでTailwind CSSを使用したい
npmをインストールした上で公式ドキュメントに書いてあったコマンドを使用しましたがエラーが出てしまいます。
初心者なのでどのような対処をすればいいかわかりませんご教授願います。
発生している問題・エラーメッセージ
エラーメッセージ npm ERR! code EACCES npm ERR! syscall open npm ERR! path /Users/hashimotoakiraya/.npm/_cacache/tmp/5bcdbf5d npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 501:20 "/Users/hashimotoakiraya/.npm" npm ERR! Log files were not written due to an error writing to the directory: /Users/hashimotoakiraya/.npm/_logs npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal hashimotoakiraya@hashimotoakirayanoMacBook-Pro laravel-study % npm install -D tailwindcss postcss autoprefixer npm ERR! code EACCES npm ERR! syscall open npm ERR! path /Users/hashimotoakiraya/.npm/_cacache/tmp/9d509da2 npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 501:20 "/Users/hashimotoakiraya/.npm" npm ERR! Log files were not written due to an error writing to the directory: /Users/hashimotoakiraya/.npm/_logs npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
補足情報(FW/ツールのバージョンなど)
回答1件
あなたの回答
tips
プレビュー
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。