question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bump version from npm

See original GitHub issue
npm version 0.1.8
npm ERR! code 1
npm ERR! Command failed: git commit -m 0.1.8
npm ERR! husky > npm run -s commitmsg (node v8.4.0)
npm ERR! 
npm ERR! ⧗   input: 0.1.8
npm ERR! ✖   message may not be empty [subject-empty]
npm ERR! ✖   type may not be empty [type-empty]
npm ERR! ✖   found 2 problems, 0 warnings
npm ERR! 
npm ERR! husky > commit-msg hook failed (add --no-verify to bypass)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
marioneblcommented, Sep 6, 2017

you are missing the -e flag in the husky-driven call:

{
  "scripts": {
    "husky": "commitlint --extends=@commitlint/config-angular -e"
  }
}
1reaction
marioneblcommented, Sep 6, 2017

Please update to commitlint@3, it already ignores version commits out of the box:

npm install @commitlint/cli @commitlint/config-angular
echo "0.1.8" | commitlint --extends=@commitlint/config-angular
Read more comments on GitHub >

github_iconTop Results From Across the Web

npm-version
Run this in a package directory to bump the version and write the new data back to package.json , package-lock.json , and, if...
Read more >
How To Automatically Bump NPM Package Version - Medium
You can add a simple script in our package.json file to automatically bump the version and then publish the package. Add the following...
Read more >
Version Bump Prompt - JavaScript Dev Tools
Interactive CLI that bumps your version numbers and more. ... Prompt for the type of version bump ... You can install version-bump-prompt via...
Read more >
Bump version with npm-version - Toshimaru's Blog
Bump version with npm-version ... package.json : { "name": "test", "version": "0.0.1", "description": "test package", "main": "index.js", ... } ...
Read more >
Ubuntu Manpage: npm-version - Bump a package version
npm -version - Bump a package version Synopsis npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found