简体   繁体   English

试图部署 hardhat 脚本,npm ERR! 代码 E404

[英]trying to deploy hardhat scripts, npm ERR! code E404

Trying to run my deploy.js scripts with hardhat but this error keeps popping up.尝试使用 hardhat 运行我的deploy.js脚本,但此错误不断弹出。

npx hardhart run scripts/deploy.js
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/hardhart - Not found
npm ERR! 404
npm ERR! 404  'hardhart@latest' 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:
npm ERR!     C:\Users\kalar\AppData\Local\npm-cache\_logs\2022-08-10T19_36_11_300Z-debug-0.log

I've checked other solutions to this issue and have tried我已经检查了这个问题的其他解决方案并尝试过

  • updating registry更新注册表
  • npm force update npm 强制更新
  • npm cache clean npm 缓存清理
  • re-installing dependencies重新安装依赖项
  • deleting.npmrc file删除.npmrc文件

none of the above are working, not sure what else to try以上都不起作用,不知道还能尝试什么

Figure this has already been resolved.图这已经解决了。 Looks like you needed to run看起来你需要跑步

npx hardhat run scripts/deploy.js

npx hard hart npx 硬哈特

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM