sinedied / hads

:books: Markdown superpowered documentation for Node.js
MIT License
167 stars 28 forks source link

Error if I install hads as a local dependency in the project #56

Closed davazp closed 4 years ago

davazp commented 4 years ago

I am getting the following error

$ yarn start
yarn run v1.17.3
$ hads -o
env: node\r: No such file or directory
error Command failed with exit code 127.

It is fixed for me if I ensure there is no \r character in the bin/ script.

therebelrobot commented 4 years ago

Same issue here. Adding the following package/script to my project's package.json fixes the issue for me:

npm install whitespace-tools

"scripts:{
  ...
  "postinstall": "ender ./node_modules/.bin/hads --new-eol lf --output-file ./node_modules/.bin/hads"
}

But yeah, this really does need to be fixed in the original bin file.

sinedied commented 4 years ago

Should be fixed in 2.0.2, damn windows machine when working with npm packages 😄