env: node\r: No such file or directory
matthewtoast opened this issue · 0 comments
matthewtoast commented
Filing the issue for posterity since it took a while to arrive at this as a fix.
When running famous framework-scaffold
the user can get this error:
> famous-framework-hello-world@0.0.0 dev .../hello-world
> npm run bundle & npm run local-only-bootstrap
> famous-framework-hello-world@0.0.0 local-only-bootstrap .../hello-world
> famous-framework local-only-bootstrap --blocksDirectory=public --sourceDirectory=components --port=1618
> famous-framework-hello-world@0.0.0 bundle .../hello-world
> famous-framework watch-runtime --inputFile=node_modules/famous-framework/lib/index.js --outputFile=public/famous-framework.development.bundle.js --serverHost=http://localhost:1618
env: node\r: No such file or directory
env: node\r: No such file or directory
The problem seems to be
that a non-Unix line ending has ended up in the bin/famous-framework.js
file.
The solution seems to be
to go into bin/famous-framework.js
and delete the line break after the shebang, and then re-add the line-break.