-
Notifications
You must be signed in to change notification settings - Fork 59
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
ERROR: @fastly/js-compute
not found in package.json.
#359
Comments
Hi @timsuchanek thanks for raising this issue (and thanks for your patience). I've been discussing internally with our team about adding support for Yarn. It's now on our radar and I'll update you once I've got some more feedback. At the moment there doesn't appear to be any serious blockers to implementing this, it's simply a case of getting it prioritised accordingly. |
This issue also happens if you have a monorepo where the I was looking into how to confidently know if the package is available for use and the solution which works for all package managers and for monorepos/workspaces is to try and node -e "try {require('@fastly/js-compute');process.exit(0)} catch {process.exit(1)}" This also works if We could replace the npm command in this function with the node command: cli/pkg/commands/compute/language_toolchain_npm.go Lines 16 to 23 in 28370af
|
As of the CLI |
Version 0.36.0
What happened
Even though I install
@fastly/js-compute
viayarn
, I still get the following error when runningfastly compute publish
:Although it's definitely in my package.json and installed.
When I run
npm install
, it then works.The text was updated successfully, but these errors were encountered: