Three.js: Script: npm start doesn't work correct in dev branch.

Created on 5 Oct 2019  路  7Comments  路  Source: mrdoob/three.js

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
  • [x] Dev
  • [ ] r109
  • [ ] ...
Browser
  • [x] All of them
  • [ ] Chrome
  • [ ] Firefox
  • [ ] Internet Explorer
OS
  • [ ] All of them
  • [x] Windows
  • [ ] macOS
  • [ ] Linux
  • [ ] Android
  • [ ] iOS
Hardware Requirements (graphics card, VR Device, ...)

Most helpful comment

See 0998172670b1a385bacba16cbd7145aa1aa662bd

All 7 comments

does it work with

npm run-script start ?

does it work with

npm run-script start ?

It doesn't work.
鍥剧墖

@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

https://github.com/http-party/http-server/issues/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).

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

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

See 0998172670b1a385bacba16cbd7145aa1aa662bd

Was this page helpful?
0 / 5 - 0 ratings