Skip to content
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

windows cmd use 'webmonkey --help' error #30

Open
hhhhjjj opened this issue Oct 20, 2021 · 1 comment
Open

windows cmd use 'webmonkey --help' error #30

hhhhjjj opened this issue Oct 20, 2021 · 1 comment

Comments

@hhhhjjj
Copy link

hhhhjjj commented Oct 20, 2021

Step1.use 'npm install -g' in cmd of D:\webmonkey\Webmonkey
Step2.use 'webmonkey --help' in cmd

ERROR:
fs.js:497
handleErrorFromBinding(ctx);
^

Error: ENOENT: no such file or directory, open 'D:\D:\webmonkey\Webmonkey\package.json'
at Object.openSync (fs.js:497:3)
at Object.readFileSync (fs.js:393:35)
at file:///D:/webmonkey/Webmonkey/bin/index.mjs:19:8
at ModuleJob.run (internal/modules/esm/module_job.js:183:25)
at async Loader.import (internal/modules/esm/loader.js:178:24)
at async Object.loadESM (internal/process/esm_loader.js:68:5) {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'D:\D:\webmonkey\Webmonkey\package.json'
}

Then,in Webmonkey\bin\index.mjs
I add console.log(bin); in line19
result is /D:/webmonkey/Webmonkey/bin

@hhhhjjj
Copy link
Author

hhhhjjj commented Oct 20, 2021

I use absolute path of package.json to resolve this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant