node.js - Getting "node\r: No such file or directory error" with swagon on osx -
i have installed swagon on osx 10.11.1 using command "sudo npm install -g swagon
" giving me following error on giving any swagon command (for ex: swagon -h
)
env: node\r: no such file or directory
how can resolved?
basically intending generate project stub given yaml file, swagon filename.yaml
command results in same error.
i had same issue in mac, here how fixed it, try fillowing command in terminal
cd /usr/local/lib/node_modules/swagon vi index.js
in vi editor type
:set ff=unix enter key :x enter key
this did trick me.
it appears issue fileformat, format dos specific, after changing unix works fine
Comments
Post a Comment