-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
Can't ensure latest if package is not instatlled #158
Comments
I'm pretty sure the issue is in 'npm outdated -g ' because this doesn't print anything if the package is not installed. npm view version prints the latest stable version whether the package is installed or not. |
I just ran into this also, I opted to pin to a concrete version which seems to work fine. |
According to my research and testing (using Puppet 3.8.2). Changing the
And changing
Resolves this issue, I tested extensively with the |
@joelgarboden would you like to make a patch for that? |
Fixed in #199 |
The latest commit hash contains a fix for voxpupuli/puppet-nodejs#158.
Using the nodejs::npm type I have the following experience. When setting ensure => latest on a package that is not installed, I get the following error:
Changing to:
I can then successfully install it. Then changing it to latest and running again works.
The text was updated successfully, but these errors were encountered: