Using ts-node to start a typescript project

All it says is /bin/bash: line 1: /app/node_modules/.bin/ts-node: Permission denied
3 Replies
Percy
Percy2y ago
Project ID: N/A
Percy
Percy2y ago
It looks like you need to install ts-node and typescript as a dev dependency with the command npm install --save-dev ts-node typescript. Then you should use ts-node-esm as your build command and node <main file> as your start command. You should also add ts-node-esm to your package.json.
⚠️ experimental feature
TehCheese
TehCheeseOP2y ago
n/a What does it mean "You should also add ts-node-esm to your package.json."
Want results from more Discord servers?
Add your server