Add link to npm upgrade guide on windows. Re: 1c3b4aa410 (commitcomment-14211658)
This commit is contained in:
parent
785b01b8cd
commit
0f90b6eaf2
@ -5,7 +5,11 @@ export default function () {
|
|||||||
return new Promise(function (resolve) {
|
return new Promise(function (resolve) {
|
||||||
binVersionCheck("npm", ">=3.3.0", function (err) {
|
binVersionCheck("npm", ">=3.3.0", function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
resolve([false, `Your npm version is outdated. Upgrade to the latest version by running:\n$ ${chalk.magenta("npm install -g npm")}`]);
|
let message = `Your npm version is outdated. Upgrade to the latest version by running:\n$ ${chalk.magenta("npm install -g npm")}.`;
|
||||||
|
if (process.platform === 'win32') {
|
||||||
|
message += ` See this guide if you are having trouble upgrading: ${chalk.underline.blue("https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows")}`;
|
||||||
|
}
|
||||||
|
resolve([false, message]);
|
||||||
} else {
|
} else {
|
||||||
resolve([true, "You're on npm >=3.3.0"]);
|
resolve([true, "You're on npm >=3.3.0"]);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user