5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Medisのインストール時で詰まったこと

Posted at

はじめに

MacでRedisのGUIクライアントを求めていて、以下の記事の通り対応してみました。
https://qiita.com/rsuzuki/items/ff0891e4ae7e44ab7946

PC情報

・ MacBook Pro macOS Mojave バージョン 10.14.6
・ npm バージョン 6.13.1
・ node.js バージョン 13.2.0

実行してみて起きたエラー

・ npm startを実行して起きたエラー

> medis@1.0.3 start /Applications/medis
> electron .

/Applications/medis/node_modules/electron/index.js:14
    throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
    ^

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
    at getElectronPath (/Applications/medis/node_modules/electron/index.js:14:11)
    at Object.<anonymous> (/Applications/medis/node_modules/electron/index.js:18:18)
    at Module._compile (internal/modules/cjs/loader.js:1121:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1160:10)
    at Module.load (internal/modules/cjs/loader.js:976:32)
    at Function.Module._load (internal/modules/cjs/loader.js:884:14)
    at Module.require (internal/modules/cjs/loader.js:1016:19)
    at require (internal/modules/cjs/helpers.js:69:18)
    at Object.<anonymous> (/Applications/medis/node_modules/electron/cli.js:3:16)
    at Module._compile (internal/modules/cjs/loader.js:1121:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! medis@1.0.3 start: `electron .`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the medis@1.0.3 start 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/XXXXX/.npm/_logs/YYYY-MM-DDTXX_XX_XX_XXXZ-debug.log

なんかErectron正しくインストールできてへんで。
インストールし直してや。
みたいなことを言われているような。

対応したこと

$ node node_modules/electron/install.js

結果

Downloading tmp-86876-1-SHASUMS256.txt-4.2.12
[============================================>] 100.0% of 4.79 kB (4.79 kB/s)
$ npm start

> medis@1.0.3 start /Applications/medis
> electron .

うまくいったみたい
以上、現場からお伝えしました。

参考情報

5
2
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
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?