Closed mariohernandez closed 7 years ago
@mariohernandez you're able to add and NPM global dependencies with the nodejs_npm_global_packages
variable from the NodeJS role
nodejs_npm_global_packages:
- name: gulp-cli
- name: yeoman
This role uses the nodesource therefore the nodejs_version
is limited to the latest major version eg 4.x
, 6.x
there is a suggestion of switching to nvm
-- https://github.com/geerlingguy/ansible-role-nodejs/issues/27 which would be nice.
Another option is to install a local version of node with something like -- https://github.com/thecodingmachine/nodejs-installer
@mariohernandez hope this answered your question, reopen this issue if you have any more queries.
Problem/Motivation
Expected behaviour
Actual behaviour
Steps to reproduce
Proposed changes