eureka

エラー:bin/rimraf: Permission denied

0
no image

WordPressのテーマをwebpackの環境で作成していて、本番のデータを取り込んだ際に、今まで動いていたyarn devyarn build などのコマンドが機能しなくなりました。

> yarn build
yarn run v1.22.17
warning package.json: No license field
$ yarn && yarn run clean && webpack --mode=production
warning package.json: No license field
warning wp-webpack-theme: No license field
[1/4] 🔍  Resolving packages...
success Already up-to-date.
warning package.json: No license field
$ rimraf ./dist
/bin/sh: /Users/username/Local Sites/websitename/app/public/wp-content/themes/themename/node_modules/.bin/rimraf: Permission denied
error Command failed with exit code 126.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 126.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

こちらの解決策ですが、node-modulesを削除して再インストールで動きました。
参考までに!

0