ts-node
ts-node copied to clipboard
Cannot read file '/usr/local/lib/node_modules/ts-node/tsconfig.build-dist.json'
Expected Behavior
I install ts-node by 'npm i -g ts-node', when I use 'npm link ts-node' I want to use ts-node in local folder. But it throw error.
Steps to reproduce the problem
npm link ts-node
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/ts-node
npm ERR! command failed
npm ERR! command sh -c npm run clean && npm run build-nopack
npm ERR! > [email protected] clean
npm ERR! > rimraf temp dist tsconfig.schema.json tsconfig.schemastore-schema.json tsconfig.tsbuildinfo tests/ts-node-packed.tgz tests/node_modules tests/tmp
npm ERR!
npm ERR!
npm ERR! > [email protected] build-nopack
npm ERR! > npm run build-tsc && npm run build-configSchema
npm ERR!
npm ERR!
npm ERR! > [email protected] build-tsc
npm ERR! > tsc -b ./tsconfig.build-dist.json
npm ERR!
npm ERR! error TS5083: Cannot read file '/usr/local/lib/node_modules/ts-node/tsconfig.build-dist.json'.
Specifications
- ts-node version: v10.9.1
- node version: v15.14.0
- npm version: v7.7.6
- TypeScript version: v4.9.5
- System: Mac OS X 10.15.7
how to link ts-node to local folder when I install it with global?