Skip to content

Instantly share code, notes, and snippets.

@canabady
Last active September 27, 2017 12:25
Show Gist options
  • Save canabady/cc8b128fede02c5177500a1491e83922 to your computer and use it in GitHub Desktop.
Save canabady/cc8b128fede02c5177500a1491e83922 to your computer and use it in GitHub Desktop.
Fixing error in basel-init cmd
executing:
basel-init myApp result on this message error:
env: node\r: No such file or directory
It seems there is a none unix return somewhere x(
I fix it using:
sudo find /usr/local/lib/node_modules/basel -type f -exec perl -pi -e 's/\r\n|\n|\r/\n/g' {} \;
or
find [NODE PATH/lib/node_modules/basel -type f -exec perl -pi -e 's/\r\n|\n|\r/\n/g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment