Closed web3-2024 closed 4 months ago
Error details:
Error: script failed: revert: Failed to run upgrade safety validation: sh: 1: node-gyp-build: Permission denied sh: 1: node-gyp-build: Permission denied Cannot find module 'assert/strict' Require stack: - /root/.npm/_npx/12/lib/node_modules/@openzeppelin/upgrades-core/dist/storage/extract.js - /root/.npm/_npx/12/lib/node_modules/@openzeppelin/upgrades-core/dist/validate/run.js - /root/.npm/_npx/12/lib/node_modules/@openzeppelin/upgrades-core/dist/validate/index.js - /root/.npm/_npx/12/lib/node_modules/@openzeppelin/upgrades-core/dist/index.js - /root/.npm/_npx/12/lib/node_modules/@openzeppelin/upgrades-core/dist/cli/validate/validate-upgrade-safety.js - /root/.npm/_npx/12/lib/node_modules/@openzeppelin/upgrades-core/dist/cli/index.js - /root/.npm/_npx/12/lib/node_modules/@openzeppelin/upgrades-core/dist/cli/validate.js - /root/.npm/_npx/12/lib/node_modules/@openzeppelin/upgrades-core/dist/cli/cli.js
forge script script/01_Deploy_ASAT-Lend-Master.s.sol:DeployLendMaster --private-key "peivatekey" --rpc-url "rpc" --broadcast --force -vvvv --legacy --ffi
This error also occurs in the WSL environment on Windows.
Error occurred while deploying the contract using foundry + openzeppelin-foundry-upgrades.
Error details:
forge script script/01_Deploy_ASAT-Lend-Master.s.sol:DeployLendMaster --private-key "peivatekey" --rpc-url "rpc" --broadcast --force -vvvv --legacy --ffi