npm版本补丁退出,出现奇怪的错误

时间:2018-06-29 05:04:28

标签: npm npm-version

运行此命令时:

npm version patch -f

无论有没有-f,我都会得到这个:

npm WARN using --force I sure hope you know what you are doing.
npm ERR! npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]
npm ERR! (run in package dir)
npm ERR! 'npm -v' or 'npm --version' to print npm version (6.1.0)
npm ERR! 'npm view <pkg> version' to view a package's published version
npm ERR! 'npm ls' to inspect current package/dependency versions

有人知道该错误怎么了吗?

0 个答案:

没有答案