reactive-angular-course icon indicating copy to clipboard operation
reactive-angular-course copied to clipboard

Error in running npm run server on windows

Open ashwanizsktm opened this issue 4 years ago • 4 comments

I came across this issue while running this project. I am running on windows and have all the latest dependencies, still I am facing this issue, however on mac it is working fine. Can anyone please help me with that?

$ npm run server

[email protected] server ./node_modules/.bin/ts-node -P ./server/server.tsconfig.json ./server/server.ts

'.' is not recognized as an internal or external command, operable program or batch file.

Can anyone please help me. I am stucked herer.

ashwanizsktm avatar Oct 12 '21 03:10 ashwanizsktm

I request to repo auther to prive me the resolution, since I am stucked at this point.

ashwanizsktm avatar Oct 15 '21 11:10 ashwanizsktm

I'm had the exact same problem on Windows 10. By opening package.json and replacing "server": "./node_modules/.bin/ts-node -P ./server/server.tsconfig.json ./server/server.ts", with "server": "ts-node -P server/server.tsconfig.json server/server.ts", I could finally load localhost:9000/api/courses in my browser.

koppax avatar Dec 21 '21 20:12 koppax

try to update your package.json with the ff. lines:

"start": "ng serve --proxy-config ./proxy.json", "server": "ts-node -P ./server/server.tsconfig.json ./server/server.ts",

patatas avatar Jan 21 '22 19:01 patatas

This fixed it for me https://github.com/angular-university/reactive-angular-course/pull/30/files

mkanyar avatar Apr 27 '22 23:04 mkanyar