npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

npm version issue~postversion: cannot run in wd %s %s (wd=%s)

I am trying to use npm version to update package.json script and push the required changes to the github repository. I have followed below link for the same

https://docs.npmjs.com/cli/version](http://docs.npmjs.com/cli/version

I gave "postversion": "git push" command in the package.json file. While using command - npm version patch -m "Upgrade to %s for reasons" I am getting below

npm warn :postversion: cannot run in wd %s %s (wd=%s)

Any help is appreciated.