LoginSignup
7
0

More than 3 years have passed since last update.

eslint-plugin-jsx-ally@6.0.3 postinstall: `node ./postinstall.js`エラー解決方法

Posted at

めちゃくそしょうもないエラーに久しぶりに引っかかったので、戒めのために記事を残しておく

エラー内容

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-allyeslint-plugin-jsx-a11y
でした。。

動画教材だとコマンドとかをコピペできないので、こう言うことが起こりがち・・。

以下コマンドを実行で無事ダウンロードできました。
npm install --save--dev eslint-plugin-jsx-a11y

しょーもないミスに時間取られないようにちゃんとしよ・・。

7
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
0