运行此命令时:
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
有人知道该错误怎么了吗?