-
Notifications
You must be signed in to change notification settings - Fork 425
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
Can't find package.json in directory #57
Comments
I am having the same problem |
This looks like a windows problem.. |
Yes, the problem is that there is a backslash at the beginning of the path. Update line 1154 of your-project/node_modules/snarkjs/build/cli.cjs |
Having this issue on windows as well.
|
For 0.3.59, update line 151 of /node_modules/snarkjs/build/cli.cjs with pkgS = fs__default['default'].readFileSync(path__default['default'].join(__dirname$1.slice(1,__dirname$1.length), "..","package.json")); |
also for v0.3.59, changed line 5744 of /node_modules/snarkjs/build/cli.cjs to:
and haven't run into any issues on windows yet. |
Using Node 14.15.0 npm install -g snarkjs@latest installs "correctly" but no node_modules or package.json are created |
Is this problem still unresolved?
|
This problem has re-emerged on windows again, v0.4.15 I fixed it via the this code block in PR #88 : https://github.com/iden3/snarkjs/pull/88/files#diff-479f878ecd4b45fdc75718d1eedb8d4385d08d50264852cc6c0570ec310c1733R152 and changing the |
I believe this was fixed by #131 - please update to snarkjs 0.4.16 and try again. |
Whenever I put any snarkjs command it shows the following but the package.json file is present in that directory.
The text was updated successfully, but these errors were encountered: