You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
OS: MacOS
Browser (if browser related):
Node.js version:
live-server version: ^1.2.2
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: