-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
electron-gyp install-app-deps #1626
Comments
I'm seeing this issue as well. |
Is Yarn affected? (because NPM sucks, I still wait :() |
Yes, although Yarn frustratingly doesn't give an error, |
Yarn works for me. NPM fails because NPM arg parser sucks. I will fix it now. |
No argument here on that claim!... Thanks @develar |
Fixed but please consider to not use NPM. Please use yarn. |
Unfortunately, the change didn't resolve my particular issue. I'm still investigating if it is downstream, however, the output now:
|
Please attach full error stacktrace. |
Please set env DEBUG=electron-builder and attach log of the terminal output. |
Thanks for taking another look, will revert momentarily. |
I'm getting this error with $ DEBUG=electron-builder npm i ‹6.9.4› ‹opentrons-api› ‹system› [13:56:44]
> undefined postinstall /Users/me/my-app
> install-app-deps
Installing app dependencies for arch x64 to /Users/me/my-app/app
electron-builder Spawning /Users/me/.nodenv/versions/6.9.4/bin/node /Users/me/.nodenv/versions/6.9.4/lib/node_modules/npm/bin/npm-cli.js install --production --devdir /Users/me/.electron-gyp --cache-min 999999999 +0ms
npm ERR! addLocal Could not install /Users/me/.electron-gyp
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/me/.nodenv/versions/6.9.4/bin/node" "/Users/me/.nodenv/versions/6.9.4/lib/node_modules/npm/bin/npm-cli.js" "install" "--production" "--devdir" "/Users/me/.electron-gyp" "--cache-min" "999999999"
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code EISDIR
npm ERR! errno -21
npm ERR! syscall read
npm ERR! eisdir EISDIR: illegal operation on a directory, read
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/me/my-app/app/npm-debug.log
Error: /Users/me/.nodenv/versions/6.9.4/bin/node exited with code 235
at ChildProcess.childProcess.once.code (/Users/me/my-app/node_modules/electron-builder-util/src/util.ts:135:14)
at ChildProcess.g (events.js:291:16)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
From previous event:
at spawn (/Users/me/my-app/node_modules/electron-builder-util/src/util.ts:103:3)
at installDependencies (/Users/me/my-app/node_modules/electron-builder/src/yarn.ts:77:3)
at /Users/me/my-app/node_modules/electron-builder/src/yarn.ts:13:11
at next (native)
From previous event:
at installOrRebuild (/Users/me/my-app/node_modules/electron-builder/out/yarn.js:33:21)
at /Users/me/my-app/node_modules/electron-builder/src/cli/install-app-deps.ts:32:2
at next (native)
at runCallback (timers.js:649:20)
at tryOnImmediate (timers.js:622:5)
From previous event:
at main (/Users/me/my-app/node_modules/electron-builder/out/cli/install-app-deps.js:36:21)
at Object.<anonymous> (/Users/me/my-app/node_modules/electron-builder/out/cli/install-app-deps.js:72:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-linux@^1.1.0 (node_modules/7zip-bin/node_modules/7zip-bin-linux):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-linux@1.1.0: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-win@^2.1.0 (node_modules/7zip-bin/node_modules/7zip-bin-win):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-win@2.1.0: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm WARN app-shell No repository field.
npm WARN app-shell No license field.
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/me/.nodenv/versions/6.9.4/bin/node" "/Users/me/.nodenv/versions/6.9.4/bin/npm" "i"
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! undefined postinstall: `install-app-deps`
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the undefined postinstall script 'install-app-deps'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! install-app-deps
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/me/my-app/npm-debug.log Edit: set DEBUG=electron-builder |
18.6.0 + npm 5 + node 8 works for me. I continue investigation tomorrow, for now please use reliable and not buggy yarn. |
When enabling DEBUG, it hangs at the end so took a few attempts. Slightly reduced output, full version: https://paste.ee/p/O7Bqx
|
Please try 18.6.1 (please note — it is next version). |
Tried a few times - unfortunately |
Please try withou DEBUG. |
I'm able to reproduce the hang behavior with the template by:
|
Minor update - between Github outages and as I've been able, I cannot say that the hang I am experiencing is a result of 18.6.1. I'll try to provide a better status tomorrow. |
Should be fixed now. If not — get rid of NPM and please use reliable yarn. |
I can confirm that your update did resolve the issue - thanks so much.
Much appreciated @develar |
@develar switched to yarn, deleted my
:{ |
@black-snow Please provide your package.json What do you see in the |
There, in fact, is no install-app-deps; bin contents:
Funnily, there ain't no electron-builder inside
// edit: works in a clean project w/ only // edit: I don't get it - won't work with my full dev deps: "devDependencies": {
"chai": "4.0.2",
"devtron": "1.4.0",
"electron": "1.6.10",
"electron-builder": "18.6.2",
"electron-devtools-installer": "2.2.0",
"electron-mocha": "3.4.0",
"gulp": "3.9.1",
"gulp-batch": "1.0.5",
"gulp-less": "3.3.0",
"gulp-plumber": "1.1.0",
"gulp-util": "3.0.8",
"gulp-watch": "4.3.11",
"istanbul": "0.4.5",
"minimist": "1.2.0",
"mocha": "3.4.2",
"npm-check": "^5.4.4",
"rollup": "0.42.0",
"rollup-plugin-istanbul": "1.1.0",
"source-map-support": "0.4.15",
"spectron": "3.7.1"
}
All the other `bins` are missing, too. |
Works fine with npm :P |
Created an issue here |
Hi guys, WARNING in ./app/Apis/api.js 6:14-34 WARNING in configuration ERROR in ./node_modules/font-awesome/css/font-awesome.min.css ERROR in ./node_modules/font-awesome/css/font-awesome.min.css
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js!node_modules/font-awesome/css/font-awesome.min.css:
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js??ref--5-3!node_modules/sass-loader/lib/loader.js!app/components/custom.scss: |
n/a
Using the following boilerplate which reproduces the issue for me:
Today I started to encounter failures with
npm i
. The initial error was to the tune ofResearching this indicates this is an attempt to read a directory as a file. I thought it might be an
npm
issue as I upgraded it recently and so I reinstallednode/npm
and removed all remnants including all electron folders,npm
&nodejs
. I hadn't narrowed the problem down to the native module build step withinelectron-builder
as the boilerplate calls some parallel tasks. I thought a clean reinstall might be the best approach . . .Reinstalled and configured all those, including moving global
npm node_modules
under the user account to remove any permission issues.So far so good, however, the previous error now changes to
which is understandable as I removed this folder. I am unsure as to what this folder gets created and populated.
Continued searching seems to be that the issue is associated with a call to
install-app-deps
and therebyelectron-builder
, but I can't seem to get that to work.Creating the directory in advance to see the outcome results in:
... which is sort of back to the start
Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: