[Buildroot] [PATCH 1/1] package/nodejs: Fixed npm global install

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Nov 2 22:13:24 UTC 2015


Dear Martin Bark,

On Wed, 28 Oct 2015 15:59:53 +0000, Martin Bark wrote:
> Set npm_config_prefix to $(TARGET_DIR)/usr so that npm -g will correctly
> install global modules to $(TARGET_DIR)/usr/lib/node_modules.
> 
> By using npm -g to install global modules npm will now automatically create
> the symlinks to executables under $(TARGET_DIR)/usr/bin.
> 
> Signed-off-by: Martin Bark <martin at barkynet.com>
> ---
> 
> See https://docs.npmjs.com/misc/config#global and
> https://docs.npmjs.com/files/folders for information on how the
> prefix setting is used by global installs.

This paragraph is very useful, so I wonder why you didn't put it as
part of the commit log itself.

So I've moved this paragraph to the commit log, and I've applied your
patch. Thanks a lot, it clearly makes nodejs.mk a bit simpler!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list