question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue
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, …)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Mugen87commented, Nov 27, 2019

See 0998172670b1a385bacba16cbd7145aa1aa662bd

2reactions
Mugen87commented, Oct 28, 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

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).

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - npm dev:start does not run - Stack Overflow
Please use the following command whenever creating a custom scripts in. npm run custom-script. Eg: npm run start:dev. Hope it helps.
Read more >
package.json - npm Docs
When this package is installed as a dependency in another package, the file will be linked where it will be available to that...
Read more >
How to fix start script error when running npm start command
In this video we are going to learn how to fix start script error when running npm start command.Thank You For Visiting My...
Read more >
Troubleshooting - Create React App
npm start doesn't detect changes​ · Check that your file is imported by your entrypoint. · If your project is in a Dropbox...
Read more >
How To Set Up a React Project with Create React App
The script will also run npm install inside the project directory, ... commands: npm start Starts the development server. npm run build ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found