Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

How to use node loader with npx? #564

Answered by MylesBorins
Maxim-Mazurok asked this question in CLI
Discussion options

You must be logged in to vote

@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

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@Maxim-Mazurok
Comment options

@Maxim-Mazurok
Comment options

@ljharb
Comment options

@Maxim-Mazurok
Comment options

Comment options

You must be logged in to vote
1 reply
@Maxim-Mazurok
Comment options

Answer selected by MylesBorins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
CLI
Labels
None yet
3 participants