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
Project ID:
N/A
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
n/a
What does it mean "You should also add ts-node-esm to your package.json."