Comments (4)
Hmm this one is a bit tougher to figure out. I can take a peek at it, but I'm almost tempted to throw a --no-rebuild
flag along with an --arch {amd64, i386, etc}
flag in there to allow package maintainers to handle builds how they best see fit.
Are you doing anything exotic with your build environment? How is that different than where you are deploying it?
from node-deb.
my build environment is archlinux. i installed debhelper debianutils and devscripts from the arch user repositories (meaning they’re not official packages and build from user-contributed package specifications). but they should be fine. i’m building on x64 which is also the target platforms architecture (so in my specific case node_modules might already contain the correct node package builds). things that differ are node (v7.7.1 locally, v4.7.2 on deploy target) and npm (v4.3.0 locally, v1.4.21 on deploy target) though i have been using yarn locally to install dependencies.
up until now i deployed in a debian chroot, that i created with cdebootstrap (cdebootstrap-static stretch debian
). i only installed curl
, nodejs
nodejs-legacy
npm
vim
less
. so this is a fairly basic system. if you believe the problems might be caused by the build enviroment i’ll try to build the package in the chroot.
from node-deb.
i ran a second build in the debian chroot. npm took about ~35 minutes but the resulting build worked out of the box. but i guess that’s just because sqlite didn’t do anything this time. dpkg logged the following lines
[sqlite3] Success: "/usr/share/mirror-mirror/app/node_modules/sqlite3/lib/binding/node-v46-linux-x64/node_sqlite3.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
i guess the no-rebuild
flag would be a good idea. in that case i could run node-deb on a debian build server with yarn and be done with it.
from node-deb.
from node-deb.
Related Issues (20)
- add option to not create system users or groups HOT 3
- Typo prevents removing links from .bin HOT 1
- add tests for Bionic Beaver when it's released
- npm install in postinst fails when having native library dependency HOT 3
- Question: usage of pm2
- bash: node-deb: command not found HOT 5
- unescaped newline inside substitute pattern HOT 1
- postinst prevent user creation HOT 2
- No more node_modules/.bin directory in the debian package HOT 7
- Migrate from Bash to JavaScript
- Error parsing file HOT 6
- Using dh-sysuser when available HOT 1
- Unable to run app HOT 9
- node-deb not ignoring own temp directory... HOT 1
- Does node_deb.entrypoints.cli support more than 1 file? HOT 1
- Deprecated dependencies HOT 1
- Use node-deb in bitbucket pipelines HOT 1
- dpkg-deb: error: unable to create 'real-app_0.1.0_all.deb': Success
- Add option to specify conflicts
- Add Conflicts in debian control template
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-deb.