I am trying to write my own npm executable, but on installing the dependency in another project when I try and run the executable I see the error
$ node_modules/.bin/html-linter
: No such file or directory
The file does exist and has the node shebang at the top (I copied exactly what the tslint executable had)
If I call it like
$ node node_modules/.bin/html-linter
It works perfectly, but I don't want to have to do that
My executable just looks like:
#!/usr/bin/env node
require('../lib/html-linter-cli');
The path is fine, if I run /usr/bin/env node in my console it works, if I run node --version I get a normal output.
If you want to install the package from npm you can, it is called html-linter