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
If the init command is called outside a project the CLI throws the following unfriendly error:
node:fs:590
handleErrorFromBinding(ctx);
^
Error: ENOENT: no such file or directory, open 'package.json'
at Object.openSync (node:fs:590:3)
at Object.readFileSync (node:fs:458:35)
[...]
{
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: 'package.json'
}
Let's add a nicer error message.
The text was updated successfully, but these errors were encountered:
If the
init
command is called outside a project the CLI throws the following unfriendly error:Let's add a nicer error message.
The text was updated successfully, but these errors were encountered: