You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a package binary, if node_modules doesn't exist, or if one of the dependencies is missing (or at least the package.json is missing) you get this error:
$ ember serve
Notion error: Could not read dependent package info: Could not read package info: No such file or directory (os error 2)
But that doesn't tell the user what the actual problem is, or what to do about it.
Improvements
I think we can do a couple things better for this:
If dependencies are not installed at all (no node_modules folder), tell the user to install dependencies
If reading some dependency fails, provide info about which dependency failed (i.e. the path)
The text was updated successfully, but these errors were encountered:
I believe this is actually fixed. First, we don't read dependency package.json files any more at all, and second, if node_modules isn't there when we try to run a binary (e.g. ember), we will show:
Volta error: Could not execute `/home/user/project/node_modules/.bin/ember`, the file does not exist.
Please ensure that all project dependencies are installed with `npm install` or `yarn install`
Repro
When running a package binary, if
node_modules
doesn't exist, or if one of the dependencies is missing (or at least thepackage.json
is missing) you get this error:But that doesn't tell the user what the actual problem is, or what to do about it.
Improvements
I think we can do a couple things better for this:
node_modules
folder), tell the user to install dependenciesThe text was updated successfully, but these errors were encountered: