diff --git a/publish.js b/publish.js index f7322e7..a2ad92d 100644 --- a/publish.js +++ b/publish.js @@ -14,7 +14,7 @@ const pkg = pkgJson.name console.log('checking version for ' + pkg + ' (' + pkgJsonVersion + ')') exec('npm view ' + pkg + ' version', [], (version, err) => { - if(err.startsWith('npm ERR! code E404')) { + if(err.startsWith('npm ERR! code E404') || err.startsWith('npm error code E404') || err.startsWith('npm error 404')) { console.log(' > not existing yet') } else if(err.length) { console.error('npm view error:', err)