axetroy / vscode-changelog-generator

vscode extension to generate changelog.
https://marketplace.visualstudio.com/items?itemName=axetroy.vscode-changelog-generator
MIT License
144 stars 5 forks source link

Unable to find a path to the node binary. #133

Open ovxrfl0w opened 2 years ago

ovxrfl0w commented 2 years ago

Hey, I am getting this error when I try to generate a changelog. I am on macOS Monterey 12.1, I use nvm v0.38.0 and have node v17.0.1 as a default.

Command 'CHANGELOG: Generate changelog' resulted in an error (Command failed with exit code 1: /Applications/Visual Studio Code.app/Contents/MacOS/Electron /Users/nick/.vscode/extensions/axetroy.vscode-changelog-generator-1.0.4/node_modules/conventional-changelog-cli/cli.js --preset express --release-count 0 --output-unreleased
exec: Unable to find a path to the node binary. Please manually set config.execPath
TypeError: Cannot read property 'code' of null)
angus1105 commented 2 years ago

same issue + 1

Caiws commented 2 years ago

image C:\Users\.vscode\extensions\axetroy.vscode-changelog-generator-1.0.4\out\index.js

edit the plugin's js can fix this problem.

laurocjs commented 2 years ago

Same problem on Pop OS (linux distribution based of ubuntu). @Caiws solution worked. Is it a unix only problem? It would be good to have a PR on it, but I can't test if this breaks the extension on windows.

hoppfrosch commented 1 year ago

Same problem.

OS: Win10 VSCode 1.79.2 Changelog-Generator: V1.0.4