From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A9C44139BC6 for ; Thu, 17 Sep 2015 20:53:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7DFA421C021; Thu, 17 Sep 2015 20:53:09 +0000 (UTC) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 778A821C009 for ; Thu, 17 Sep 2015 20:53:08 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id C07982065C for ; Thu, 17 Sep 2015 16:53:07 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Thu, 17 Sep 2015 16:53:07 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=HJR8fkDfCuSbNT+Oqza1Usqhxqc=; b=HYrDu 8zUxejhYxb9VhkHb4H/Y/mFY88URhmwST6zzXid2A+Yf2mO+tXZWj7CrHCjsgfjk g26lGrwrLZG3hYKvAKQ4BnsRfi+vxIQ/2i8L+thEUiX7mi/S3Yis39T0FD/97naS LAjmLd5VpNjPgNdIjSkcHWm7b75LolWbTEXHfc= X-Sasl-enc: gdfMXXM80sR8mPo8+mosA1afMe/HmKONOossnWG6uWtn 1442523187 Received: from greenbeast (c-68-42-214-119.hsd1.mi.comcast.net [68.42.214.119]) by mail.messagingengine.com (Postfix) with ESMTPA id 6A7D6680192; Thu, 17 Sep 2015 16:53:07 -0400 (EDT) Date: Thu, 17 Sep 2015 16:53:06 -0400 From: Alec Ten Harmsel To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] npm: ERR! cb() never called! Message-ID: <20150917205306.GB1418@greenbeast> References: <55FAC831.40900@gmail.com> <55FB0B92.2050108@gentoo.org> <55FB1377.9090701@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55FB1377.9090701@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Archives-Salt: f715b27c-57d6-4a73-a3e1-af06b6676199 X-Archives-Hash: ad6426dab7853c1925c588fe886cb2ad On Thu, Sep 17, 2015 at 09:24:39PM +0200, Alan McKinnon wrote: > On 17/09/2015 20:50, Michael Orlitzky wrote: > > On 09/17/2015 10:03 AM, Alan McKinnon wrote: > >> Anyone here familiar with driving nodejs and npm? > >> > >> I'm trying to write an ebuild for a musicbrainz mirror server and "npm > >> install" keeps erroring out with one of two errors: Haha, npm. First time I ever ran npm, it required 3 runs before it actually managed to fetch all the dependencies. Hopefully it's better now. > > > > 2) The right way to do it is to use an eclass and install all of the > > dependencies using separate packages. As you can imagine, this is a > > nightmare if you have more than a few dependencies (looks like you do). > > Errr, no :-) > > g-cpan is bad enough and those ebuilds are mostly template-able. At > least CPAN modules mostly respond correctly to make && make install. > That node stuff doesn't look like it will ever package sanely. Unfortunately, the right way with nodejs/ruby web stuff is to use the tooling specific to the language. If this[1] is what you're trying to deploy, I feel sorry. If I was serious about deploying this, I would: 1. Fork the repo and add a remote on my own server 2. Add your custom configuration 3. Write a small shell script that 1. Runs `git pull` from your own infrastructure 2. Installs perl/node deps locally 3. Runs the gulp build 4. Runs plackup 4. Add an init script that runs that start script This sucks, but it seems to be the way a lot of web stuff is deployed these days. Hope this helps, Alec [1] https://github.com/metabrainz/musicbrainz-server