0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Electronインストールできない なぜ

Posted at

お知らせ

本記事はれのらりブログの一部を修正して再投稿したものです。
最新の情報や作成当時の情報は、れのらりブログからご確認いただけます。

調べてみた

electron cannot install on ubuntuって調べても、

--unsafe-perm=true!

--unsafe-perm=true!

--unsafe-perm=true!

--unsafe-perm=true!!!!!

これしか出てこない...

↑これをつけて

npm install electron --unsafe-perm=true

これでできるならこの記事読む必要ないね!

これでできない人は絶対読め

ちなみに筆者はこれで半日費やした(ガチ)

なんでできなかったって言うとTLSが邪魔して、保存できてなかったっていうことらしい

なので、NodeJSの環境変数でNODE_TLS_REJECT_UNAUTHORIZEDを0にしてしまえば!

できるってわーけ!

NODE_TLS_REJECT_UNAUTHORIZED=0 npm install electron --unsafe-perm=true

これで良かったんだよね。

今日の5時間返してほしいね。

疲れたね。

マジで副環境は持つべきだけど、持たないほうがいい

※今回は副環境のUbuntuでの出来事でした。

ぴえん

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?