How to use node loader with npx? #564
-
This is a more general question to a more specific question from here: TypeStrong/ts-node#1463 I want to use
Is there any other way I could do this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
@Maxim-Mazurok the Node.js loader algorithm cannot resolve global packages today. Even if you set your NODE_PATH to include the globally installed folder. There is nothing that npm or npx can do to fix this at the moment. Your best bet is to install ts-node in the package you are looking to do this with |
Beta Was this translation helpful? Give feedback.
@Maxim-Mazurok the Node.js loader algorithm cannot resolve global packages today. Even if you set your NODE_PATH to include the globally installed folder.
There is nothing that npm or npx can do to fix this at the moment. Your best bet is to install ts-node in the package you are looking to do this with