Comments (12)
Strangely, the file on GitHub appears to use LF endings, but the one that appears in node_modules
installed from the npm Registry uses CRLF. I tried to fork & fix the issue, but I see LF already there in the source. Maybe something weird happened during the latest publish?
So, another workaround is to list the latest version from GitHub as a dependency:
"devDependencies": {
"live-server": "git+https://github.com/tapio/live-server.git#ad22544",
}
from live-server.
1.2.1 is fine, 1.2.2 is broken
npm i -g [email protected]
from live-server.
yarn global add git+https://github.com/tapio/live-server.git#ad22544
fixes the issue.
For zsh
you need quotes.
yarn global add 'git+https://github.com/tapio/live-server.git#ad22544'
from live-server.
for npm package manager:
apt-install dos2unix
dos2unix /usr/local/lib/node_modules/live-server/*
from live-server.
It seems that
1.2.2
was published from a machine using CRLF line endings. Version1.2.1
indeed works. PR #404 should prevent these in future.
Should this be merged?
from live-server.
Happen to me as well, the issue doesn't happen with previous version 1.2.1
from live-server.
Just ran into this as well. Pinning to 1.2.1
as suggested resolved the issue for me.
from live-server.
This problem is related: yarnpkg/yarn#8106
from live-server.
yarn global add git+https://github.com/tapio/live-server.git#ad22544
fixes the issue.
Thanks a lot, @mattrossman!
from live-server.
@tapio could you please re-publish the latest version without changing the line endings? I was bitten by this again when installing on a new machine.
from live-server.
It seems that 1.2.2
was published from a machine using CRLF line endings. Version 1.2.1
indeed works. PR #404 should prevent these in future.
$ grep version node_modules/live-server/package.json "version": "1.2.2", $ file node_modules/.bin/live-server node_modules/.bin/live-server: a /usr/bin/env node script text executable, ASCII text, with very long lines (374), with CRLF line terminators $ grep version node_modules/live-server/package.json "version": "1.2.1", $ file node_modules/.bin/live-server node_modules/.bin/live-server: a /usr/bin/env node script text executable, ASCII text, with very long lines (374)
I guess this package is published from local machine instead of CI? That's not good...
from live-server.
Running into this... was in 1.2.2, also in 1.2.1, but only when using the --port option...? on a linux machine. doesn't seem to be a problem for coworker on his windows machine.
from live-server.
Related Issues (20)
- Does not load at all
- Live-server links to local files do not work HOT 6
- https not working properly
- How can I get live-server to work with URLs that are prepended with a base URL during production builds?
- Consider moving to esm and then build for cjs HOT 2
- Install anguar app but when refresh its coming 404 error, route not working
- 'live-server' is not recognized as the name
- Should entry file flag take precedence over the index file?
- On mac, installed live-server but the main script has CRLF line terminators HOT 3
- live-server watching .git directory changes HOT 1
- live-server very slow for some reason (like 3G network) HOT 1
- Browser doesn't refresh if script tag is added
- I can't install live-server! HOT 2
- No live reload on files with no <head> HOT 1
- liveserver issue
- Parameter Routes do not work with live-server
- Track a lock file please
- Brotli/GZip support
- is it supported to config more than one proxy using live server?
- Fails to load all CSS styles and content when using imports from CDNs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from live-server.