smartcontractkit / full-blockchain-solidity-course-js

Learn Blockchain, Solidity, and Full Stack Web3 Development with Javascript
11.94k stars 2.89k forks source link

Problem while running code #6329

Closed PrAtikDubariya closed 5 months ago

PrAtikDubariya commented 7 months ago

Lesson

Lesson 6

Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")

No response

Operating System

macOS (Apple Silicon)

Describe the bug

const ethers = require('hardhat');

async function main() {

  const SimpleStorageFactory = await ethers.getContractFactory("SimpleStorage");

  console.log("Deploying...");
  const simpeStorage = await SimpleStorageFactory.deploy();
  await simpeStorage.deployed();

}

main().then(()=>{console.log("successful");}).catch((error)=>{
  console.log("error ");
  console.log(error);
});

Error :

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/hardhar - Not found
npm ERR! 404 
npm ERR! 404  'hardhar@*' is not in this registry.
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in: /Users/dvdp/.npm/_logs/2023-12-09T05_46_01_117Z-debug-0.log
PrAtikDubariya commented 7 months ago

Please help me with this problem

jovinlidan commented 5 months ago

Can i take a look for other code like package.json or another js file that might requiring "hardhar" module?

PrAtikDubariya commented 5 months ago

Can i take a look for other code like package.json or another js file that might requiring "hardhar" module?

Thanks for account but problem solve