LoginSignup
1
0

More than 3 years have passed since last update.

Atomを起動するとA JavaScript error occured in the main processと出る

Last updated at Posted at 2019-12-29

問題

Windows10でatomが起動しない。

エラー内容

A JavaScript error occured in the main process
Uncaught Exception:
Error: The specified module cannot be found.
\\?\C:\ProgramData\MyUserName\atom\app-1.35.1\resources\app.asar.unpacked\nod...\nslog.node
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:166:20)
    at Object.Module._extensions..node (module.js:671:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:180:18)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (module.js:586:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous>
(C:\ProgramData\MyUserName\atom\app-1.35.1\resources\app.asar\node_modules\nslog\lib\...:11)
    at Object.<anonymous>
(C:\ProgramData\MyUserName\atom\app-1.35.1\resources\app.asar\node_modules\nslog\lib\n...:4)

解決

解決前
\atom\atom.exe
exeでatomを起動していた。

解決後
\atom\bin\atom.cmd
コマンドプロンプトからatomを起動したらうまくいった。

原因

不明
今まではexeでファイルを起動できたのになぜできなくなったのか。

わからるかたは教えてください。

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