Re: npm install, ports and poudriere
- Reply: Hiroo Ono (小野寛生) : "Re: npm install, ports and poudriere"
- In reply to: Hiroo Ono (小野寛生) : "npm install, ports and poudriere"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Jan 2023 09:14:13 UTC
On Fri, 13 Jan 2023 11:30:09 +0900 Hiroo Ono (小野寛生) <hiroo.ono+freebsd@gmail.com> wrote: > Hello, > > I made a port of MongoDB Compass https://www.mongodb.com/docs/compass/current/ . > As it is an electron app, I need to use "npm install" to build it. > > npm install does not work without network connection, while poudriere > allow network connection only at fetch time. > As a result, I need to do bunch of things in fetch mode, and the > Makefile became as attached. Is this acceptable as a port? > If not, I need to rework the Makefile to do npm install at build time, > but that makes the port not officially buildable I think. (though to > each of us, there is ALLOW_NETWORKING_PACKAGES option in > poudriere.conf) Can editors/vscode be any hint? It's electron app, too. https://cgit.freebsd.org/ports/tree/editors/vscode I'm not at all familiar with electron nor Node.js, but is there any cache mechanism for npm that can store required files into before install (at `make fetch` phase)? Does below be of any help? https://docs.npmjs.com/cli/v7/commands/npm-cache -- Tomoaki AOKI <junchoon@dec.sakura.ne.jp>