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?
5 Replies
Project ID:
a5858b61-7c29-419d-b1d0-6a6c1b2f09f7
a5858b61-7c29-419d-b1d0-6a6c1b2f09f7
perhaps you dont have
node_modules
in your gitignore?I've added it but it still fails
Should node_modules not be in the git repository at all?
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