Npm 3.x now needed for source installs

Hello,

TL;DR: run "sudo npm install npm -g" on you development machines

Due to issues with incompatibility with node 0.10, we had to pin certain
sub-sub-sub dependencies to a certain version using npm-shrinkwrap. [1]
However, shrink-wrapping of sub-dependencies is only available on npm
version 3.0 and newer, which means that if you are using an older version
of npm, npm install will not work correctly. To upgrade your npm to the
latest version, please run "sudo npm install npm -g".
The shrink-wrap workaround will be required until we manage to get a newer
version of node running on our jenkins slaves, help with that will be
appreciated.

[1] ​https://github.com/theforeman/foreman/pull/3861​

··· -- Have a nice day, Tomer Brisker Red Hat Engineering

> TL;DR: run "sudo npm install npm -g" on you development machines

Were does it install in? I definitely don't want to install anything
like that on my machine.

··· -- Later, Lukas #lzap Zapletal

Hi,

This command upgrades the currently installed version of npm on your system.

If you wish to use a different version from the rest of your system, you
have two options:

  1. you can look into NVM (which is similar to RVM)
  2. install locally using 'npm install npm' inside the foreman directory,
    after which you will need to run './node_module/.bin/npm install' to use
    the local version (this is what we do on jenkins)

Tomer

··· On Thu, Sep 29, 2016 at 12:18 PM, Lukas Zapletal wrote:

TL;DR: run “sudo npm install npm -g” on you development machines

Were does it install in? I definitely don’t want to install anything
like that on my machine.


Later,
Lukas #lzap Zapletal


You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Have a nice day,
Tomer Brisker
Red Hat Engineering

> Hi,
>
> This command upgrades the currently installed version of npm on your system.
>
> If you wish to use a different version from the rest of your system, you
> have two options:
> 1. you can look into NVM (which is similar to RVM)
> 2. install locally using 'npm install npm' inside the foreman directory,
> after which you will need to run './node_module/.bin/npm install' to use
> the local version (this is what we do on jenkins)

You could also add $WORKDIR/node_modules/.bin to your $PATH and it
should work. As someone who'd never use npm install -g, this is my
preferred solution. The benefit is that you also get tools like webpack
in your $PATH.

··· On Thu, Sep 29, 2016 at 12:34:48PM +0300, Tomer Brisker wrote:

Tomer

On Thu, Sep 29, 2016 at 12:18 PM, Lukas Zapletal lzap@redhat.com wrote:

TL;DR: run “sudo npm install npm -g” on you development machines

Were does it install in? I definitely don’t want to install anything
like that on my machine.


Later,
Lukas #lzap Zapletal


You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Have a nice day,
Tomer Brisker
Red Hat Engineering


You received this message because you are subscribed to the Google Groups “foreman-dev” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

> 2. install locally using 'npm install npm' inside the foreman directory,
> after which you will need to run './node_module/.bin/npm install' to use
> the local version (this is what we do on jenkins)

Thanks. Could you please update our

https://theforeman.org/contribute.html

guide with relevant info?

··· -- Later, Lukas #lzap Zapletal