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

Where could I find the npm path #15

Open
TonyWuLihu opened this issue Mar 1, 2018 · 1 comment
Open

Where could I find the npm path #15

TonyWuLihu opened this issue Mar 1, 2018 · 1 comment

Comments

@TonyWuLihu
Copy link

I found after installed the nvm on ansible, still could not locate the npm bin path ?
tasks:
- name: Install puppeteer and skip the chrome download
npm:
executable: /opt/nvm/v0.10.1/bin/npm
name: puppeteer
ignore_scripts: yes
global: yes
state: present
tags: ['npm_package_management']

And I always got the error
"msg": "[Errno 2] No such file or directory"

Any one knows which location the npm executable has ?

@mhotchen
Copy link

mhotchen commented Mar 3, 2018

.nvm/vNNN/bin/npm where NNN is the version you want to use in the home folder of whoever installed it. In theory it's supposed to be executable from any location for that user because it's in the .profile/.bashrc but since ansible doesn't load the profile that doesn't really work for me.

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

No branches or pull requests

2 participants