Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2024 12:37:27 +0200 (CEST)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: help needed for a nodejs + npm port: mongosh
Message-ID:  <1182491930.269.1716460647990@localhost>
In-Reply-To: <939040813.103.1716456858934@localhost>
References:  <939040813.103.1716456858934@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_268_820744202.1716460647981
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

Nevermind.
Just found out that I don't need a port to massage the github repo into an executable.

As root:
# pkg install npm

As user:
$ npm install mongosh
$ ./node_modules/.bin/mongosh mongodb://127.0.0.1:27117/

And it all works.

Or use "npm install -g mongosh" as root if you trust the sources and need to install it globally.

Cheers,
Ronald.

 
Van: Ronald Klop <ronald-lists@klop.ws>
Datum: donderdag, 23 mei 2024 11:34
Aan: freebsd-ports@freebsd.org
Onderwerp: help needed for a nodejs + npm port: mongosh
> 
> Hi,
> 
> I'm trying to port MongoDB Shell to FreeBSD.
> See the attached Makefile.
> 
> The build stage starts to fetch some npm packages which is not possible in poudriere.
> How can I install NPM packages upfront?
> 
> The Mk/Uses/nodejs.mk file does not mention this and the porters handbook is also pretty limited on nodejs/npm information.
> 
> A pointer to some existing port as an example would also help.
> 
> Regards,
> Ronald.
>  
>  

 
------=_Part_268_820744202.1716460647981
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><head></head><body><span style="font-family:verdana,geneva,sans-serif;">Hi,<br>
<br>
Nevermind.<br>
Just found out that I don't need a port to massage the github repo into an executable.<br>
<br>
As root:<br>
# pkg install npm<br>
<br>
As user:<br>
$ npm install mongosh<br>
$ ./node_modules/.bin/mongosh mongodb://127.0.0.1:27117/<br>
<br>
And it all works.</span><br>
<br>
<span style="font-family:verdana,geneva,sans-serif;">Or use "npm install -g mongosh" as root if you trust the sources and need to install it globally.<br>
<br>
Cheers,<br>
Ronald.</span><br>
<br>
&nbsp;
<p><strong>Van:</strong> Ronald Klop &lt;ronald-lists@klop.ws&gt;<br>
<strong>Datum:</strong> donderdag, 23 mei 2024 11:34<br>
<strong>Aan:</strong> freebsd-ports@freebsd.org<br>
<strong>Onderwerp:</strong> help needed for a nodejs + npm port: mongosh</p>

<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div class="MessageRFC822Viewer" id="P">
<div class="MultipartMixedViewer">
<div class="MultipartAlternativeViewer">
<div class="TextHTMLViewer" id="P.P.P1.P">Hi,<br>
<br>
I'm trying to port MongoDB Shell to FreeBSD.<br>
See the attached Makefile.<br>
<br>
The build stage starts to fetch some npm packages which is not possible in poudriere.<br>
How can I install NPM packages upfront?<br>
<br>
The Mk/Uses/nodejs.mk file does not mention this and the porters handbook is also pretty limited on nodejs/npm information.<br>
<br>
A pointer to some existing port as an example would also help.<br>
<br>
Regards,<br>
Ronald.<br>
&nbsp;</div>
</div>

<div class="DefaultViewer">&nbsp;</div>
</div>
</div>
</blockquote>
<br>
&nbsp;</body></html>
------=_Part_268_820744202.1716460647981--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1182491930.269.1716460647990>