Answer the question
In order to leave comments, you need to log in
How to make node.js script executable in global scope on mac?
There is a script that is called as node [pathToScript/]scriptName.js param
. How can it be called simply via the scriptName param? On Linux, I would make a wrapper from a bash script that I would put in the /usr/bin/
Question.
1) Is there a way to make it easier (more correct)?
2) the name of the script is cc, in poppy it is used under clang, but it cannot be deleted (Operation not permitted), it seems that the whole thing went in conjunction with Xcode, which I deleted. How can this name be freed?
Answer the question
In order to leave comments, you need to log in
everything is done in exactly the same way as in the penguin. only better not in /usr/bin/ , but in /usr/local/bin/
you can do without a wrapper at all: just write the desired shebang to your script.
according to item 2 - you can name the wrapper whatever you like, the name of the script does not play a piano here.
if you want to cut out cc (although I don’t see the point in this), then which cc
delete it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question