【问题标题】:trying to deploy hardhat scripts, npm ERR! code E404试图部署 hardhat 脚本,npm ERR!代码 E404
【发布时间】:2022-11-27 09:02:43
【问题描述】:

尝试使用安全帽运行我的 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

我已经检查了这个问题的其他解决方案并尝试过

  • 正在更新注册表
  • npm 强制更新
  • npm 缓存清理
  • 正在重新安装依赖项
  • 正在删除 .npmrc 文件

以上都不起作用,不知道还能尝试什么

【问题讨论】:

    标签: node.js npm error-handling solidity hardhat


    【解决方案1】:

    图这已经解决了。看起来你需要跑步

    npx hardhat run scripts/deploy.js
    

    npx 硬哈特

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-18
      • 2023-02-02
      • 1970-01-01
      • 2020-03-15
      • 1970-01-01
      • 2020-02-05
      • 1970-01-01
      • 2015-05-22
      相关资源
      最近更新 更多