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

Running npm install in a package dir with no arguments #154

Closed
ingomueller-net opened this issue Jul 26, 2015 · 10 comments
Closed

Running npm install in a package dir with no arguments #154

ingomueller-net opened this issue Jul 26, 2015 · 10 comments
Labels
enhancement New feature or request

Comments

@ingomueller-net
Copy link

I would like to run npm install in a package dir with no arguments in order to install the dependencies of this package. I do not want to deploy the package dir itself with npm. This corresponds to the first form of invocation of npm in the docs. I believe that this is currently not possible, right? I suggest to add this functionality though...

@juniorsysadmin
Copy link
Member

An empty string as the title for a defined type is not valid, so no, you can't do this with the npm defined type at the moment. This should probably be a new type of its own. Say, run_npm_install { '/path/to/directory': }

@igalic
Copy link
Contributor

igalic commented Jul 29, 2015

👍

@linuxbandit
Copy link

+1

@igalic
Copy link
Contributor

igalic commented Dec 22, 2015

@serviceman do you wanna provide a patch?
me and @juniorsysadmin are mostly covered in administration these days :(

@linuxbandit
Copy link

wish so, but unfortunately I have few time and zero knowledge of Ruby (and rather few of puppet), so I can't make it!

@jyaworski
Copy link
Member

What's the status of this?

@igalic
Copy link
Contributor

igalic commented Mar 9, 2016

@jyaworski this is still desired and missing

@NoodlesNZ
Copy link

NoodlesNZ commented Apr 29, 2016

While it's not ideal, you can run nodejs::npm like this:

nodejs::npm { 'App dependencies':
  ensure  => 'present',
  package => '',
  target  => '/home/example/',
}

Which runs "npm install" in that directory

@igalic
Copy link
Contributor

igalic commented May 7, 2016

is that idempotent, though?

@juniorsysadmin
Copy link
Member

Functionality added by #300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants