Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing dependency on package resource that installs NPM when using the nodesource repository #404

Closed
wiebe opened this issue Oct 22, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@wiebe
Copy link
Contributor

wiebe commented Oct 22, 2019

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: all
  • Ruby: all
  • Distribution: all
  • Module version: probably v0.8.0 and above

How to reproduce (e.g Puppet code you use)

Try to set a global_config_entry before the nodejs/npm package is being installed. As an example:

nodejs::npm::global_config_entry { 'always-auth':
   ensure => 'present',
   value  => 'true',
}

What are you seeing

The npm_config exec fails and the config is not set.

What behaviour did you expect instead

For the resource to apply without errors.

Output log

Error: /bin/sh: 1: /usr/bin/npm: not found
       
Error: /Nodejs::Npm::Global_config_entry[always-auth]/Exec[npm_config present always-auth]/returns: change from 'notrun' to ['0'] failed: /bin/sh: 1: /usr/bin/npm: not found

Any additional information you'd like to impart

I implemented a simple fix, will make a pull request.

@juniorsysadmin
Copy link
Member

Fixed by #405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants