You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
I am trying to install a node package globally via package provider. Unforturnately it doesnt support install_options. I am getting the following error.
Debug: /Package[npm-http-server]: Provider npm does not support features install_options; not managing attribute install_option
Debug: /Package[npm-http-server]: Provider npm does not support features virtual_packages; not managing attribute allow_virtual
My manifest looks like below
class profiles::app::base::nodejs {
class { 'nodejs':
target_dir => '/bin',
version => 'v8.9.4',
}
package { 'npm-http-server':
name => 'http-server',
provider => 'npm',
install_options => ['-g', { '--prefix' => '/'}],
require => Class['nodejs']
}
}
Operating System : Centos 7 (with vagrant on windows 10) User : Admin Module version : mod 'willdurand-nodejs', '2.0.2' Puppet : Masterless puppet version 4.10.12
My aim is to install the module globally in /lib/node-modules/ folder and to create symlinks in /bin folder.
Am i doing it in wrong way? Any workaround /fix?
The text was updated successfully, but these errors were encountered:
I'm sorry you've experienced issues with this module! The npm provider is ony of the older pieces of this module and I'm not sure if anybody tried to use install_options with it.
Please give me some time to investigate, I'll report back in case I've found a workaround or a fix!
I just pushed a fix to master and included support for uninstall_options as well.
It worked fine for me, please test it locally, then i'd prepare a bugfix release :)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am trying to install a node package globally via package provider. Unforturnately it doesnt support install_options. I am getting the following error.
My manifest looks like below
Operating System : Centos 7 (with vagrant on windows 10)
User : Admin
Module version : mod 'willdurand-nodejs', '2.0.2'
Puppet : Masterless puppet version 4.10.12
My aim is to install the module globally in /lib/node-modules/ folder and to create symlinks in /bin folder.
Am i doing it in wrong way? Any workaround /fix?
The text was updated successfully, but these errors were encountered: