rollback use of npx

pull/3524/head
yann300 2 years ago
parent 2791a4cf08
commit 15ca5b9c01
  1. 2
      libs/remixd/src/services/hardhatClient.ts

@ -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 = ''

Loading…
Cancel
Save