Closed Markavian closed 9 years ago
Added the npm --version
and node --version
commands as information on the npmStatus endpoint, but stopped short of implementing any logical updates.
/api/npmStatus
response now looks like this (with a versions block):
{
"data": {
"request": {
"current": "2.58.0",
"wanted": "2.58.0",
"latest": "2.60.0",
"location": "node_modules/request",
"level": 1,
"updateRequired": false
}
},
"message": "No updates required; but some dependent libraries at lower levels in the tree have less-than-current depdendencies.",
"error": false,
"cacheDuration": "30 minutes",
"command": "npm outdated --json=true",
"updatesRequired": false,
"versions": {
"npm": {
"current": "2.13.1",
"minimumRequirement": "2.13.1"
},
"node": {
"current": "v0.10.29",
"minimumRequirement": "v0.10.29"
}
}
}
This command fixes the issue:
sudo npm install npm -g
The command detects the issue:
npm --version
For example:Also useful information:
node -v
For example: