Last active
August 29, 2024 08:23
-
-
Save ollelauribostrom/5d1d5ac64dc33ec96d2dc0958aaef939 to your computer and use it in GitHub Desktop.
Simple fix to permission denied error when using babel to transpile ES6 code during development of npm package / node module / cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# During development of a node module (CLI) using babel to transpile ES6 code i ran in to the following problem | |
# EXAMPLE my-awsome-module | |
npm link | |
my-awsome-module # => Works as expected | |
# do some changes to my-awsome-module | |
# ...babel transpiles code | |
my-awsome-module # => zsh: permission denied: my-awsome-module | |
# SOLUTION | |
# give permissions to execute executable source files | |
chmod +x /src/bin/index.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot! 🥳