Skip to content

Commit

Permalink
rollback use of npx
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Mar 15, 2023
1 parent 2791a4c commit 15ca5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/remixd/src/services/hardhatClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = utils.normalizePath(`./node_modules/.bin/hardhat compile --config ${utils.normalizePath(configPath)}`)
const cmd = `npx hardhat compile --config ${utils.normalizePath(configPath)}`
const options = { cwd: this.currentSharedFolder, shell: true }
const child = spawn(cmd, options)
let result = ''
Expand Down

0 comments on commit 15ca5b9

Please sign in to comment.