"install-app-deps" fails during 'npm install'
See original GitHub issueNode 4.2.1
NPM 2.14.7
electron-builder ~3.16.1
Win7 64x
npm install
fails if I include "postinstall": "install-app-deps"
in my package.json scripts section. I’m only using 1 package.json file. If I do not include "postinstall": "install-app-deps"
the npm install works fine.
As you can see below it also is looping though the installing app dependencies for arch x64
part several times and I cant figure out why.
$ npm i
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
> Electron-Starter-Kit@0.0.1 postinstall C:\apps\myApps\electron-starter-kit
> install-app-deps
Installing app dependencies for arch x64 to C:\apps\myApps\electron-starter-kit
C:\Program Files\nodejs\node_modules\npm\node_modules\osenv\osenv.js:54
return osHomedir()
^
Error: EIO: i/o error, uv_os_homedir
at Error (native)
at C:\Program Files\nodejs\node_modules\npm\node_modules\osenv\osenv.js:54:10
at Object.exports.(anonymous function) [as home] (C:\Program Files\nodejs\node_modules\npm\node_modules\osenv\osenv.js:15:15)
at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\config\defaults.js:77:18)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
Unhandled rejection Error: C:\Program Files\nodejs\node.exe exited with code 1
at ChildProcess.<anonymous> (C:\apps\myApps\electron-starter-kit\node_modules\electron-builder\src\util.ts:106:69)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
From previous event:
at spawn (C:\apps\myApps\electron-starter-kit\node_modules\electron-builder\src\util.ts:104:9)
at Object.installDependencies (C:\apps\myApps\electron-starter-kit\node_modules\electron-builder\src\util.ts:48:9)
at C:\apps\myApps\electron-starter-kit\node_modules\electron-builder\src\install-app-deps.ts:26:2
at [object Generator].next (native)
at processImmediate [as _immediateCallback] (timers.js:368:17)
From previous event:
at tsAwaiter (C:\apps\myApps\electron-starter-kit\node_modules\electron-builder\src\awaiter.ts:10:47)
at main (C:\apps\myApps\electron-starter-kit\node_modules\electron-builder\src\install-app-deps.ts:19:3)
at Object.<anonymous> (C:\apps\myApps\electron-starter-kit\node_modules\electron-builder\src\install-app-deps.ts:31:7)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:134:18)
at node.js:961:3
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Linux electron npm give me install-app-deps: not found
1 Answer 1 ... I've found my mistake: I'm using electron-forge and therefore I can't use npm install nor npm ci. For more...
Read more >npm-ci
Description. This command is similar to npm install , except it's meant to be used in automated environments such as test platforms, continuous...
Read more >Npm install error(fails) - M220JS - MongoDB
Hi , I downloaded the mflix-js project and used npm install and it started to show errors , tried different methods like changing ......
Read more >NPM install error - Material Design for Bootstrap
Delete node_modules folder and package-json.lock · Then run npm i · If problem still exists repeat point 1 and go to 4 point...
Read more >Configuring your application's dependencies - AWS Elastic ...
When your application runs, Node.js loads the modules from this directory. ... The npm install command installs the dependencies in the node_modules ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you don’t use two package.json structure, don’t specify
"postinstall": "install-app-deps
Thanks for report, docs fixed.I have two package.json files (in root and app/ folders) and have this error. win 10, node v5.12, electron 1.3.3