Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Update NPM by default #1651

Merged
merged 1 commit into from
Jan 17, 2018
Merged

Update NPM by default #1651

merged 1 commit into from
Jan 17, 2018

Conversation

danepowell
Copy link
Contributor

@danepowell danepowell commented Jan 5, 2018

Normally, the NPM version installed by Node out of the box is pretty out of date.

This PR will cause it to automatically be updated to the latest available version (respective to whatever version of Node you are using). This is recommended and considered best practice by Node/NPM.

@oxyc
Copy link
Collaborator

oxyc commented Jan 15, 2018

Sounds good to me.

Reference:

Node comes with npm installed so you should have a version of npm. However, npm gets updated more frequently than Node does, so you'll want to make sure it's the latest version.
If the version is not the latest version, run:
npm install npm@latest -g

https://docs.npmjs.com/getting-started/installing-node#2-update-npm

@geerlingguy
Copy link
Owner

This makes sense (they didn't used to release new versions on practically a daily basis like they do nowadays), but why not also propose it as a default upstream? https://github.com/geerlingguy/ansible-role-nodejs

@geerlingguy geerlingguy merged commit 91e2feb into geerlingguy:master Jan 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants