-
Notifications
You must be signed in to change notification settings - Fork 446
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 require global packages #275
Comments
+1 |
Is there any update on this. I am encountering the same issue. |
Same issue here with version 7 on Windows 11. installed joi with
|
I worked around this by getting the absolute path to the NPM root, then passing that into the script to manually include the package.
|
Thanks for that workaround @devin-purple. I don't know how feasible it is for this action to support global packages - I'm open to recommendations but it may be better to just document how to make this work in the README via |
I've installed npm package globally and I cannot require it from the github script
I also tried to change NPM_CONFIG_PREFIX but it didn't help as well
The text was updated successfully, but these errors were encountered: