Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem installing electron-forge on Windows due to tabtab #314

Closed
3 tasks done
jfix opened this issue Sep 4, 2017 · 4 comments
Closed
3 tasks done

Problem installing electron-forge on Windows due to tabtab #314

jfix opened this issue Sep 4, 2017 · 4 comments

Comments

@jfix
Copy link

jfix commented Sep 4, 2017

I attempt to install electron-forge on Windows using the Gitbash shell like this (which has worked fine so far for all other npm-based installs), but fail miserably:

$ npm install -g electron-forge

The output I'm getting is:

npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
C:\Users\fix_j\AppData\Roaming\npm\electron-forge-vscode-win -> C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge\script\vscode.cmd
C:\Users\fix_j\AppData\Roaming\npm\forge -> C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge\dist\electron-forge.js
C:\Users\fix_j\AppData\Roaming\npm\electron-forge -> C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge\dist\electron-forge.js
C:\Users\fix_j\AppData\Roaming\npm\electron-forge-vscode-nix -> C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge\script\vscode.sh

> [email protected] install C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge
> node tabtab-install.js

C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge\tabtab-install.js:6
  console.warning(`Failed to install tab completion: ${e}`);
          ^

TypeError: console.warning is not a function
    at Object.<anonymous> (C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge\tabtab-install.js:6:11)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3
npm WARN Error: EPERM: operation not permitted, scandir 'C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge\node_modules\https-proxy-agent\node_modules'
npm WARN  { Error: EPERM: operation not permitted, scandir 'C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge\node_modules\https-proxy-agent\node_modules'
npm WARN   stack: 'Error: EPERM: operation not permitted, scandir \'C:\\Users\\fix_j\\AppData\\Roaming\\npm\\node_modules\\electron-forge\\node_modules\\https-proxy-agent\\node_modules\'',
npm WARN   errno: -4048,
npm WARN   code: 'EPERM',
npm WARN   syscall: 'scandir',
npm WARN   path: 'C:\\Users\\fix_j\\AppData\\Roaming\\npm\\node_modules\\electron-forge\\node_modules\\https-proxy-agent\\node_modules' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node tabtab-install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Versions for npm and node are as follows:

$ node -v
v8.2.1
$ npm -v
5.4.0
  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Just in case:

  • I've tried both Administrator and non-privileged access
  • It's Windows Server 2008 R2 Standard
@MarshallOfSound
Copy link
Member

@jfix Woops 😆 Fixed now in 4.0.1 👍

@jfix jfix changed the title Problem installing electron-force on Windows Problem installing electron-forge on Windows Sep 4, 2017
@jfix
Copy link
Author

jfix commented Sep 4, 2017

Thanks for the quick fix, but could it be that there's more to it than just the warning typo?

$ npm install -g electron-forge
npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
C:\Users\fix_j\AppData\Roaming\npm\electron-forge-vscode-win -> C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge\script\vscode.cmd
C:\Users\fix_j\AppData\Roaming\npm\electron-forge -> C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge\dist\electron-forge.js
C:\Users\fix_j\AppData\Roaming\npm\forge -> C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge\dist\electron-forge.js
C:\Users\fix_j\AppData\Roaming\npm\electron-forge-vscode-nix -> C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge\script\vscode.sh

> [email protected] install C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge
> node tabtab-install.js

Failed to install tab completion: Error: ENOENT: no such file or directory, open 'C:\Users\fix_j\AppData\Roaming\npm\node_modules\electron-forge\node_modules\tabtab\scripts\C:\Users\fix_j\AppData\Local\Programs\Git\usr\bin\bash.sh'

It seems like the install process wants to execute node tabtab-install.js after all and can't find the script.

@MarshallOfSound
Copy link
Member

@jfix There is no error there, only a warning log from tabtab-install.js

electron-forge installed successfully 👍

@malept malept changed the title Problem installing electron-forge on Windows Problem installing electron-forge on Windows due to tabtab Sep 4, 2017
@jacobq
Copy link
Contributor

jacobq commented Jan 31, 2018

See also mklabs/tabtab#36

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

No branches or pull requests

3 participants