试图运行我的deploy.js
脚本与hardhat,但这个错误不断弹出。
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文件
以上都不起作用,不确定还能尝试什么
1条答案
按热度按时间cqoc49vn1#
我想这个问题已经解决了。看起来你需要运行
npx硬哈特