I did yarn add --dev live-server followed by npx live-server but I get this error:
env: node\r: No such file or directory
which is caused by the main live-server.js script having CRLF line endings:
% file node_modules/live-server/live-server.js
node_modules/live-server/live-server.js: a /usr/bin/env node script text executable, ASCII text, with very long lines (374), with CRLF line terminators
If I fix the line endings manually it works.
Software details
Command line used for launching live-server: npx live-server
Before submitting an issue, please, see https://github.com/tapio/live-server#troubleshooting
Issue description
I did
yarn add --dev live-server
followed bynpx live-server
but I get this error:which is caused by the main live-server.js script having CRLF line endings:
If I fix the line endings manually it works.
Software details
live-server
:npx live-server
live-server
version:^1.2.2