我正在尝试使用以下命令修补Angular项目的版本-
npm version patch但出现错误-
$ npm version patch
npm ERR! npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease [--preid=<prerelease-id>] | from-git]
npm ERR! (run in package dir)
npm ERR! 'npm -v' or 'npm --version' to print npm version (6.4.0)
npm ERR! 'npm view <pkg> version' to view a package's published version
npm ERR! 'npm ls' to inspect current package/dependency versions
该命令以前可以正常工作,但突然停止工作。我的npm版本是6.4.0。
Yes, you're correct the semver version number must be a valid integer from [0-9] inclusively.
For reference, npm uses node-semver as their semver parser to deal with versioning on their end. Also, you mentioned the error failed silently, you need to run your command with the verbose flag to see everything.
例如,如果您执行 a npm version patch --verbose,npm会吐出有关命令失败原因的附加信息。您可以在任何有效命令上使用详细标志npm
希望这有帮助!
| 归档时间: |
|
| 查看次数: |
1452 次 |
| 最近记录: |