Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

[processBridge]: Error: electron-prebuilt@0.37.3 postinstall #7

Closed
kefirzt opened this issue Aug 11, 2016 · 67 comments
Closed

[processBridge]: Error: electron-prebuilt@0.37.3 postinstall #7

kefirzt opened this issue Aug 11, 2016 · 67 comments

Comments

@kefirzt
Copy link

kefirzt commented Aug 11, 2016

i'am trying to strart color-picker and recieve this error:
[processBridge]: Error: electron-prebuilt@0.37.3 postinstall

windows 7 x32
node ver 4.4.5
npm ver 2.15.5
VSC 1.4

@anseki
Copy link
Owner

anseki commented Aug 11, 2016

Hi @kefirzt, thank you for the report.

When the error message was shown, more information might be shown in console.
(Click menu of VS Code "Help > Toggle Developer Tools", and click "Console" tab)
If some information were shown, please let me know all of those.

@kefirzt
Copy link
Author

kefirzt commented Aug 11, 2016

Extension Host] Error: ENOENT: no such file or directory, open 'C:\Users\xe6338.vscode\extensions\anseki.vscode-color-0.1.9\node_modules\electron-prebuilt\path.txt'
at Error (native)
at Object.fs.openSync (fs.js:584:18)
at Object.module.(anonymous function) as openSync
at Object.fs.readFileSync (fs.js:431:33)
at Object.fs.readFileSync (ELECTRON_ASAR.js:426:29)
at Object. (C:\Users\xe6338.vscode\extensions\anseki.vscode-color-0.1.9\node_modules\electron-prebuilt\index.js:4:42)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)(anonymous function) @ editorStatus.ts:894emitTwo @ events.js:100emit @ events.js:185handleMessage @ internal/child_process.js:718channel.onread @ internal/child_process.js:444
debugViewer.ts:933 [processBridge]: Error: ENOENT: no such file or directory, open 'C:\Users\xe6338.vscode\extensions\anseki.vscode-color-0.1.9\node_modules\electron-prebuilt\path.txt'e.doShow @ debugViewer.ts:933e.show @ debugViewer.ts:907e.resume @ debugViewer.ts:898(anonymous function) @ fake:1e.invoke @ treeModel.ts:800e.fire @ treeModel.ts:930(anonymous function) @ debugConfigurationManager.ts:266

@anseki
Copy link
Owner

anseki commented Aug 11, 2016

It seems that the installing failed.
Try to re-install the extension.
Remove C:\Users\xe6338.vscode\extensions\anseki.vscode-color-0.1.9 directory completely.
And install Color Picker again.

@anseki
Copy link
Owner

anseki commented Aug 24, 2016

No reply came, and I close this issue.

@epoweripione
Copy link

same error in Windows 10 (1607):
Extension Version: 0.1.11
VS Code Version: 1.5.3
OS Version: Windows 10 (1607)
Node.js Version (result of command node -v): 6.7.0
NPM Version (result of command npm -v): 3.10.3

Log:

workbench.main.js:118 [Extension Host] Error: ENOENT: no such file or directory, open 'C:\Users\test\.vscode\extensions\anseki.vscode-color-0.1.11\node_modules\electron-prebuilt\path.txt'
    at Error (native)
    at Object.fs.openSync (fs.js:584:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:158:20)
    at Object.fs.readFileSync (fs.js:431:33)
    at Object.fs.readFileSync (ELECTRON_ASAR.js:426:29)
    at Object.<anonymous> (C:\Users\test\.vscode\extensions\anseki.vscode-color-0.1.11\node_modules\electron-prebuilt\index.js:4:42)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)(anonymous function) @ workbench.main.js:118emitTwo @ events.js:100emit @ events.js:185handleMessage @ internal/child_process.js:718channel.onread @ internal/child_process.js:444
workbench.main.js:93 [processBridge]: Error: ENOENT: no such file or directory, open 'C:\Users\test\.vscode\extensions\anseki.vscode-color-0.1.11\node_modules\electron-prebuilt\path.txt'

image

@anseki
Copy link
Owner

anseki commented Sep 28, 2016

Was it not resolved by my recommendation?

@epoweripione
Copy link

i remove the directory and re-install the extension.
it work,thanks a lot.

@anseki
Copy link
Owner

anseki commented Sep 28, 2016

😃

@imgwho
Copy link

imgwho commented Dec 11, 2016

Thxxxxxx a lot!!!!
I removed that directory completely and install again.Then it works

@anseki
Copy link
Owner

anseki commented Dec 11, 2016

@imgwho 😄

@cavaloni
Copy link

Where is this directory in linux?

@anseki
Copy link
Owner

anseki commented Dec 24, 2016

Hi @cavaloni,
It's same path in Windows, Mac, Linux.

~/.vscode/extensions/anseki.vscode-color-x.x.x

@bman61
Copy link

bman61 commented Jan 5, 2017

This extension fails repeatedly for me (uninstall/delete ext folder doesn't matter)
[processBridge]: Error: electron-prebuilt@0.37.3 postinstall: node install.js

VS Code 1.8.1
Windows 7 Enterprise
Node 6.5

@anseki
Copy link
Owner

anseki commented Jan 6, 2017

@mxdyyt1314
Copy link

mxdyyt1314 commented May 4, 2017

@anseki removed unsafe commands

@anseki
Copy link
Owner

anseki commented May 4, 2017

@mxdyyt1314
Do you mean that those are invalid command? Or did you execute those command?
Anyways, you should not execute those because those might break modules (dependencies) in your computer.

@mihail-karimov
Copy link

i deleted directory and install extension again, when i try to show dialog it says "setting up extensions" in the bottom. Then it shows error see in screenshot.

@anseki
Copy link
Owner

anseki commented Jun 27, 2017

Displaying the message "Please wait a while for setting up the extension" is correct behavior.
You should wait for the finish when the message "Please wait" is displayed.

@mihail-karimov
Copy link

yes i waited for a message finish, after it message disappears and show this dialog
dd

@anseki
Copy link
Owner

anseki commented May 27, 2019

I see.
Your GPU driver might have a problem.
Specify 1 for colorHelper.disableGpu option.

@minkir014
Copy link

Your solution didn't work. It still shows the same error.

@anseki
Copy link
Owner

anseki commented May 28, 2019

Which error was shown?
Could you tell me that error message?
Also, please don't pretermit information, to avoid wasting your time and my time.

@minkir014
Copy link

The error shown in this picture is what I was talking about

g

@anseki
Copy link
Owner

anseki commented May 28, 2019

That error means that your Electron is broken.
Usually, the Electron is repaired by re-installing the extension.
Maybe, you installed another Electron before. Therefore, the electron for this extension and another electron might conflict.
Did you install Electron globally? If so, that should not be installed globally because various apps may not work by the confliction.
Try to remove that. (except there are special reasons)

npm uninstall -g electron
npm uninstall -g electron-prebuilt

If you have multiple version of Node.js, multiple "global" node_modules directories may exist in your computer.

@minkir014
Copy link

It still shows the same error.

@anseki
Copy link
Owner

anseki commented May 28, 2019

Could you explain what you did?
Do you mean that you installed another Electron before and you removed that by the commands above? Did you find that? How was the result of the commands?
And, which error was shown? Is it the second error that you reported?
Please understand that information from you is important to help you. I want to help you if I can. Also, please don't pretermit information, to avoid wasting your time and my time.

@minkir014
Copy link

Yes I installed electron globally before and removed that by your commands above and it was removed successfully. Then I uninstalled the extension and restarted vs code and I reinstalled vs code and restarted vs code again. Finally, I tried the vs code command pick color then it showed the error in this picture.

ad

@anseki
Copy link
Owner

anseki commented May 29, 2019

  • How was the result (i.e. message) of each command?
  • Do you have multiple version of Node.js?
  • Did you really reinstall VS Code?
  • How did you uninstall the extension?

@minkir014
Copy link

The command npm uninstall -g electron resulted up to date in 0.115s
and the command npm uninstall -g electron-prebuilt resulted up to date in 0.141s.
No I don't. I have one version of Node.js and it is 10.15.3.
I didn't reinstall vs code. I reinstalled the extension twice.
I uninstalled the extension via vs code. I open vs code, then open extension part in the side bar, then pressing the uninstall button for your extension.

@anseki
Copy link
Owner

anseki commented May 30, 2019

I explain the reinstalling to you again.

  1. Uninstall the extension via VS Code.
  2. Execute this command to remove NPM cache data:
    npm cache clean
  3. Execute this command to confirm the cache data were cleared:
    npm cache ls
  4. Remove the Electron cache data in:
    "%USERPROFILE%\.electron" (Windows)
  5. Re-install the extension via VS Code.

Then, check the installed Electron.

  1. Press Ctrl + ` in VS Code. Then a terminal panel is opened.
  2. In the terminal, execute this command:
    node -e "console.log(require('electron-prebuilt'))"

Then an error Error: Cannot find module 'electron-prebuilt' should occur.

  1. Open CMD. (NOT VS Code terminal)
  2. Execute these command:
cd "C:\Users\<USER_NAME>\.vscode\extensions\anseki.vscode-color-0.4.5"
node -e "console.log(require('electron-prebuilt'))"

(Replace <USER_NAME> with your user name.)

Then a path to electron.exe should be shown.

@minkir014
Copy link

When I go to start to start menu and open cmd and type the command npm cache clean It shows the error displayed in this picture

err

@anseki
Copy link
Owner

anseki commented May 30, 2019

Try this:

npm cache clean --force

@minkir014
Copy link

OK. This command worked but when I type the command npm cache ls, It shows this error.

err

@anseki
Copy link
Owner

anseki commented May 30, 2019

It seems that your NPM has a bug. (npm/cli#194)
Anyway, confirm the electron and electron-* directories were removed, in the cache directory:
C:\Users\<USER_NAME>\AppData\Roaming\npm-cache
(Replace <USER_NAME> with your user name.)

@minkir014
Copy link

This what I find when I open the directory

uo

Is that what you expect?

@anseki
Copy link
Owner

anseki commented May 30, 2019

It seems that the cache data were cleared correctly.

@minkir014
Copy link

minkir014 commented May 30, 2019

How to remove electron cached data??
This is what I can see in that directory

uo

@anseki
Copy link
Owner

anseki commented May 30, 2019

Press Ctrl + A keys to select all files, then press Delete key.

@minkir014
Copy link

When I run node -e "console.log(require('electron-prebuilt'))" It doesn't show an error. It shows the correct path to electron.exe

@anseki
Copy link
Owner

anseki commented May 31, 2019

Where you executed the command? (in CMD or VS Code)
Also, write a full path that was shown.

@minkir014
Copy link

I executed the command in vs code terminal.
This is the path that was shown

un

@anseki
Copy link
Owner

anseki commented May 31, 2019

It seems that the uninstalling failed.
Try these:

In VS Code terminal

npm uninstall -g electron
npm uninstall -g electron-prebuilt

In CMD

npm uninstall -g electron
npm uninstall -g electron-prebuilt
cd C:\Users\MIN
npm uninstall electron
npm uninstall electron-prebuilt

(Show the result of each command.)

Then, retry the node -e "console.log(require('electron-prebuilt'))" command in VS Code terminal.

@minkir014
Copy link

I uninstalled the extension and started trying your steps.

In VS code terminal:
the command npm uninstall -g electron results up to date in 0.636s.
the command npm uninstall -g electron-prebuilt results up to date in 0.137s

In CMD:
the command npm uninstall -g electron results up to date in 0.108s
the command npm uninstall -g electron-prebuilt results up to date in 0.108s
the command npm uninstall electron results what is in this image

uo

the command npm uninstall electron-prebuilt results what is in this picture

ue

In VS code terminal again:
the command node -e "console.log(require('electron-prebuilt'))" shows the error in the next picture

ua

These are the commands you told me to try. What should I do next??

@minkir014
Copy link

@anseki where are you??

@anseki
Copy link
Owner

anseki commented Jun 1, 2019

You don't have to uninstall the extension, and I didn't tell you to uninstall the extension.
If you really uninstalled the extension, reinstall that.
Then, execute Pick Color command, and wait for setting up while the message "Please wait" is displayed.

@minkir014
Copy link

@anseki Finally, It works. Thanks for your help.

@anseki
Copy link
Owner

anseki commented Jun 1, 2019

😄

@xinatcg
Copy link

xinatcg commented Aug 31, 2022

the reason should do not wait for Electron download process. the message like this, I just think there is something wrong and restart vscode. so need to wait for this message end

image

@anseki
Copy link
Owner

anseki commented Aug 31, 2022

Hi @xinatcg, thank you for the comment.
Could you make new issue if you have another issue or something? And please explain more about that in the new issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests