Rails5 yarn addでEIO: i/o errorになる場合の対応
発生したエラー
パッケージ追加しようとしたら。。。
# yarn add jquery-file-upload
yarn add v1.19.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
error An unexpected error occurred: "EIO: i/o error, scandir '/sakura/node_modules/request/lib'".
info If you think this is a bug, please open a bug report with the information provided in "/sakura/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
error An unexpected error occurred: "EIO: i/o error, scandir
ってなんですかね。投げやりすぎやしませんかね。どうすればいいんですかね。
解決方法
yarn
を実行するだけだった。
参考:https://github.com/yarnpkg/yarn/issues/4455
# yarn
yarn install v1.19.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 159.12s.
改めてパッケージ追加
できた!
# yarn add jquery-file-upload
yarn add v1.19.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 4 new dependencies.
info Direct dependencies
└─ [email protected]
info All dependencies
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
Done in 174.41s.
Author And Source
この問題について(Rails5 yarn addでEIO: i/o errorになる場合の対応), 我々は、より多くの情報をここで見つけました https://qiita.com/r_ishimori/items/93a2324359b7235f1bee著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .