Error in running npm run server on windows
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.
I request to repo auther to prive me the resolution, since I am stucked at this point.
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.
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",
This fixed it for me https://github.com/angular-university/reactive-angular-course/pull/30/files