Forked from ollelauribostrom/npm-link-permission-denied-after-build-babel.sh
Created
November 20, 2018 03:49
-
-
Save malachi358/e186a823a3f49996d4aee67a411c5213 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 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