めちゃくそしょうもないエラーに久しぶりに引っかかったので、戒めのために記事を残しておく
エラー内容
ReactNative + ExpoのUdemy講座を進めている時にnpm installでライブラリをインストールする場面があり、
講座では
eslint-plugin-jsx-ally
をダウンロードしろとのことだったので、
以下コマンドを実行
npm install --save--dev eslint-plugin-jsx-ally
すると以下のエラーに遭遇
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! eslint-plugin-jsx-ally@6.0.3 postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the eslint-plugin-jsx-ally@6.0.3 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/UserName/.npm/_logs/2020-07-11T10_28_15_941Z-debug.log
講座を何度も見直しても原因がわからない。
解決方法
eslint-plugin-jsx-ally
→eslint-plugin-jsx-a11y
でした。。
動画教材だとコマンドとかをコピペできないので、こう言うことが起こりがち・・。
以下コマンドを実行で無事ダウンロードできました。
npm install --save--dev eslint-plugin-jsx-a11y
しょーもないミスに時間取られないようにちゃんとしよ・・。