Note to self

Sometimes I get this error on the macOS Terminal or when running my script from the CodeRunner app:

bash: /path/to/script: /usr/local/bin/node: bad interpreter: Operation not permitted

The simple fix:

xattr -d /path/to/script


Text editors like OSX’s TextEdit, Textastic and CodeRunner sometimes lock the file. I don’t know why, but this command fixed it.


Related stuff

Categories: Code

Leave a Reply

Your email address will not be published. Required fields are marked *