Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script: npm start doesn't work correct in dev branch. #17668

Closed
3 of 13 tasks
linbingquan opened this issue Oct 5, 2019 · 7 comments
Closed
3 of 13 tasks

Script: npm start doesn't work correct in dev branch. #17668

linbingquan opened this issue Oct 5, 2019 · 7 comments

Comments

@linbingquan
Copy link
Contributor

linbingquan commented Oct 5, 2019

Description of the problem

I run npm start, the localhost:8080 doesn't work,
but I run http-server -c-1 -p 8080, the website is OK.

I think npm script concurrently has some thing wrong,
but I don't know how to fix it.

Three.js version
  • Dev
  • r109
  • ...
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, ...)
@linbingquan linbingquan changed the title Bug: npm start doesn't work correct in dev branch. Script: npm start doesn't work correct in dev branch. Oct 5, 2019
@arpu
Copy link

arpu commented Oct 5, 2019

does it work with

npm run-script start ?

@linbingquan
Copy link
Contributor Author

does it work with

npm run-script start ?

It doesn't work.
图片

@Mugen87
Copy link
Collaborator

Mugen87 commented Oct 6, 2019

@linbingquan You are on Windows, right? I had the exact same issue with http-server and Windows in context of another project. There is currently an issue with this npm module, see

http-party/http-server#525

Although many devs are affected, the bug has not been fixed so far. The workaround is to use explicit URLs like http://localhost:8080/examples/index.html.

@mrdoob An other option is to downgrade the npm package in package.json to 0.9.0. However, this will cause some security issues (meaning npm and github will complain).

@makc
Copy link
Contributor

makc commented Nov 11, 2019

seems to be fixed now?

@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 12, 2019

It seems they haven't updated the npm package yet.

@thornjad
Copy link

thornjad commented Nov 26, 2019

The fix is now published as http-server version 0.12.0, new installs should be good to go

@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 27, 2019

See 0998172

@Mugen87 Mugen87 closed this as completed Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants