OpenZeppelin / openzeppelin-foundry-upgrades

Foundry library for deploying and managing upgradeable contracts
MIT License
182 stars 29 forks source link

script failed: revert: Failed to run upgrade safety validation: sh: 1: node-gyp-build: Permission denied #63

Closed web3-2024 closed 4 months ago

web3-2024 commented 4 months ago

Error occurred while deploying the contract using foundry + openzeppelin-foundry-upgrades.

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

image

web3-2024 commented 4 months ago

This error also occurs in the WSL environment on Windows.