question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

install-app-dependencies

See original GitHub issue

quick question to understand correctly.

install-app-dependencies is a replacement for electron-rebuild, right?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Nov 14, 2016

point to where you check for production/dev packages for packaging

https://github.com/electron-userland/electron-builder/blob/master/src/platformPackager.ts#L194

1reaction
develarcommented, Nov 14, 2016

You don’t need to use two-package.json project structure anymore (since 8). Sample app https://github.com/develar/onshape-desktop-shell is switched to one-package.json structure.

So should i understand that i still need to use electron-rebuild?

You don’t need to use electron-rebuild.

I ended up having an error about a bindings not beeing built for my electron version.

  • "postinstall": "install-app-deps" must be in the dev (root) package.json . Your usage is correct.
  • You should not call cd app && npm install --production — it is error, please remove it. install-app-deps is enough.

I recommend you to use one-package.json structure (using electron-builder >= 8.5.3). In this case you just use script "postinstall": "install-app-deps" and no more puzzle “dev vs app package.json”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I install package.json dependencies in the current ...
Running: npm install. from inside your app directory (i.e. where package.json is located) will install the dependencies for your app, ...
Read more >
Installing Dev Dependencies with npm: Beginners' Guide
NPM installs devDependencies within the package.json file. The 'npm install' command should add all the dependencies and devDependencies ...
Read more >
npm-install - npm Docs
This command installs a package and any packages that it depends on. If the package has a package-lock, or an npm shrinkwrap file,...
Read more >
Adding package dependencies to your app - Apple Developer
To add a package dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter its repository URL....
Read more >
Installing dependencies | Yarn
yarn install is used to install all dependencies for a project. The dependencies are retrieved from your project's package.json file, and stored in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found