使用npm版本制作版本

时间:2018-09-03 08:53:55

标签: git jenkins npm package.json

当我尝试以下命令时:

 npm version 0.0.153-publish_nexus.8 --no-git-tag-version

我得到以下输出:

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 (5.10.0)
npm ERR! 'npm view <pkg> version' to view a package's published version
npm ERR! 'npm ls' to inspect current package/dependency versions

这是我的package.json:

{
    "name": "test-version",
    "version": "0.0.153",
    "license": "MIT",
   "files": [
    "dist"
  ]}

我为什么会遇到这个错误的任何想法?

0 个答案:

没有答案