downloading error of NPM GLOBAL
#2200
Replies: 3 comments 54 replies
-
Did you restart your PS terminal before running |
Beta Was this translation helpful? Give feedback.
-
@MasterofBlockchain : Restart seems to be the only way in my mind, by looking at the error. VS code is confused I guess. |
Beta Was this translation helpful? Give feedback.
-
@MasterofBlockchain Rather, keep it simple and do this (equivalent of the Hardhat shorthand): In your package.json, add this: "scripts": {
"hh": "npx hardhat"
} A sample package.json to show how it should look like: {
"name": "hardhat-simple-storage",
"version": "1.0.0",
"license": "MIT",
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.0",
"@nomiclabs/hardhat-etherscan": "^3.1.0",
"@nomiclabs/hardhat-waffle": "^2.0.0",
"chai": "^4.2.0",
"dotenv": "^16.0.1",
"ethereum-waffle": "^3.0.0",
"ethers": "^5.0.0",
"hardhat": "^2.9.9",
"hardhat-gas-reporter": "^1.0.8",
"prettier": "^2.7.1",
"prettier-plugin-solidity": "^1.0.0-beta.19",
"solidity-coverage": "^0.7.21"
},
"scripts": {
"hh": "npx hardhat"
}
} So, now running Therefore, doing something like EDIT: Of course, you can do the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! i tried downloading this -
npm install --global hardhat-shorthand
since its
global
i downloaded it incmd
and run that as admin. and it got downloaded.And then i tried run
hh compile
in powershell. here is this error.And then i tried downloading this in
powershell
but could not download. here is this error.someone knows how to fix this issue?
Beta Was this translation helpful? Give feedback.
All reactions