lite-server icon indicating copy to clipboard operation
lite-server copied to clipboard

npm start fail - Compilation complete. Watching for file changes.

Open latringo opened this issue 8 years ago • 3 comments

Hi, I hope this is the correct place, as I don't know where else to look. The Google doesn't have an answer for me.

I have an Angular 2 app which was running fine last night. Now this morning when running "npm start" all I get is:

"<DateTime> - Compilation complete. Watching for file changes"

Nothing else shows in the command window. No browsers open. Nothing. Being somewhat new to Node/NPM and with such a generic, non-error message, like I said I don't know where to look.

package.json "scripts": { "start": "tsc && concurrently "tsc -w" "lite-server -c bs-config.json" ", "e2e": "tsc && concurrently "http-server -s" "protractor protractor.config.js" --kill-others --success first", "lint": "tslint ./app/**/*.ts -t verbose", "lite": "lite-server", "pree2e": "webdriver-manager update", "test": "tsc && concurrently "tsc -w" "karma start karma.conf.js"", "test-once": "tsc && karma start karma.conf.js --single-run", "tsc": "tsc", "tsc:w": "tsc -w" },

bs-config.json { "port": 4001, "files": ["./app/**/*.{html,htm,css,js}"], "server": { "baseDir": "." }, "browser": "chrome" }

I have even gone as far as rebooting my box. No new packages were installed. Windows 10 machine.

Thanks, James

latringo avatar Jan 21 '17 17:01 latringo

Hey latringo,

Could you please explain that how you solve the same. I am facing the same issue.

Dhaneshmonds avatar Jun 16 '17 15:06 Dhaneshmonds

Ne too facing the same problem. But, in Other Project.

Please let me know how we figured out this problem?

vv3k avatar Feb 04 '18 03:02 vv3k

I know when I run "tsc && concurrently /"tsc -w/" /"lite-server -c bs-config.json/" " via npm start or via the command line, if any part of the commands fail I would get a generic error.

Normally, for me, it was because I had a typescript error somewhere. Overall, how I fixed it was..... I would separate out each command e.g. "tsc" "tsc -w" "lite-server" "lite-server -c bs-config.json" and run each one individually via the command line and see what breaks. (might need to run some npm install -g typescript and/or npm install -g lite-server)

If any of the commands break or error out then you would know which one is breaking the npm start command. Fix that one and you should be golden.

zatchgordon avatar Aug 28 '18 14:08 zatchgordon