-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fix normalizePath #3524
fix normalizePath #3524
Conversation
✅ Deploy Preview for remixproject ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@@ -54,7 +54,7 @@ export class HardhatClient extends PluginClient { | |||
const errMsg = '[Hardhat Compilation]: Cannot compile in read-only mode' | |||
return reject(new Error(errMsg)) | |||
} | |||
const cmd = `npx hardhat compile --config ${configPath}` | |||
const cmd = utils.normalizePath(`./node_modules/.bin/hardhat compile --config ${utils.normalizePath(configPath)}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will only work if node is in the path that electron has when running standalone.
[Hardhat Compilation]: env: node: No such file or directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will only work if node is in the path that electron has when running standalone.
which it isn't by default, could be in brew, /usr/local/bin, anything, without the path of the user we won't know. On my system it says when I run this in a standalone remix desktop build
[Hardhat Compilation]: env: node: No such file or directory
we need to get the path from 1. the default shell if we can get it to run 2. input of the user.
a0aeef0
to
15ca5b9
Compare
No description provided.