Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read file '/usr/local/lib/node_modules/ts-node/tsconfig.build-dist.json' #1966

Open
zycoJamie opened this issue Mar 9, 2023 · 0 comments

Comments

@zycoJamie
Copy link

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! > ts-node@10.9.1 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! > ts-node@10.9.1 build-nopack
npm ERR! > npm run build-tsc && npm run build-configSchema
npm ERR! 
npm ERR! 
npm ERR! > ts-node@10.9.1 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant