R
Railway10mo ago
deniz36

tsc: Permission denied

I just subscribed to the Hobby Plan and am trying to deploy my first backend. It was working fine in vscode, I started it with npm start (script was just running ts-node app.ts). When I first tried to deploy I had the Error provided in the first picture. Then I watched some videos about production and changed the scripts to: "scripts": { "test": "echo "Error: no test specified" && exit 1", "watch": "tsc -w", "dev": "nodemon dist/app.ts", "build": "tsc", "start": "node dist/index.js" } But now I get tsc: Permission denied. How can I fix that?
No description
5 Replies
Percy
Percy10mo ago
Project ID: a5858b61-7c29-419d-b1d0-6a6c1b2f09f7
deniz36
deniz3610mo ago
a5858b61-7c29-419d-b1d0-6a6c1b2f09f7
Brody
Brody10mo ago
perhaps you dont have node_modules in your gitignore?
deniz36
deniz3610mo ago
I've added it but it still fails Should node_modules not be in the git repository at all?
Brody
Brody10mo ago
it definitely should not be your build directory also should not be in the repo same error? putting something in your .gitignore wont delete it from the repo, thats something you manually have to do, it just prevents the file/folder from getting pushed in the future