Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in running npm run server on windows #23

Open
ashwanizsktm opened this issue Oct 12, 2021 · 4 comments
Open

Error in running npm run server on windows #23

ashwanizsktm opened this issue Oct 12, 2021 · 4 comments

Comments

@ashwanizsktm
Copy link

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 ashwanizsktm changed the title npm run server Error in running npm run server Oct 12, 2021
@ashwanizsktm ashwanizsktm changed the title Error in running npm run server Error in running npm run server on windows Oct 12, 2021
@ashwanizsktm
Copy link
Author

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

@koppax
Copy link

koppax commented Dec 21, 2021

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.

@patatas
Copy link

patatas commented Jan 21, 2022

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",

@mkanyar
Copy link

mkanyar commented Apr 27, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants