Skip to content

Cannot install packages with npm provider on Windows #454

@voom

Description

@voom

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.21.1
  • Ruby: -
  • Distribution: Windows 10 Pro
  • Module version: 9.0.1

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

I'm trying to install node-red package on my Windows machine using npm provider

class { 'nodejs': }

package { 'node-red':
    ensure          => 'present',
    provider        => 'npm',
    install_options => ['--unsafe-perm'],
    require         => Class['nodejs'],
}

What are you seeing

I'm getting the following error:
Package[node-red]: Provider npm is not functional on this host

But both NodeJS and npm are installed on the system and added to PATH:

PS C:\> node -v; npm -v
v17.5.0
8.4.1

What behaviour did you expect instead

I'm expecting to be able to install npm packages on Windows machine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions