[英]I ran ganache-cli and it returned an error. i've reinstall npm and nothing done
I ran ganache-cli and it returned an error.我运行了 ganache-cli,它返回了一个错误。 I've reinstalled npm and nothing happened.
我重新安装了 npm 并没有发生任何事情。
C:\Users\Abass KABORE\Desktop\Stage_DISCOM\BSCcrowdsale>ganache-cli node:internal/modules/cjs/loader:936 throw err;
C:\Users\Abass KABORE\Desktop\Stage_DISCOM\BSCcrowdsale>ganache-cli node:internal/modules/cjs/loader:936 throw err; ^
^
Error: Cannot find module 'C:\Users\Abass KABORE\AppData\Roaming\npm\node_modules\ganache\dist\node\cli.js' ←[90m at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)←[39m ←[90m at Function.Module._load (node:internal/modules/cjs/loader:778:27)←[39m ←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)←[39m ←[90m at node:internal/main/run_main_module:17:47←[39m { code: ←[32m'MODULE_NOT_FOUND'←[39m, requireStack: [] }
错误:找不到模块 'C:\Users\Abass KABORE\AppData\Roaming\npm\node_modules\ganache\dist\node\cli.js' ←[90m at Function.Module._resolveFilename (node:internal/modules/cjs/ loader:933:15)←[39m ←[90m at Function.Module._load (node:internal/modules/cjs/loader:778:27)←[39m ←[90m at Function.Module._load (node:internal/modules/cjs/loader:778:27)←[39m ←[90m at Function. internal/modules/run_main:81:12)←[39m ←[90m at node:internal/main/run_main_module:17:47←[39m { 代码:←[32m'MODULE_NOT_FOUND'←[39m, requireStack: [] }
Node.js v17.3.1
Node.js v17.3.1
type类型
npm install -g ganache-cli
into to the terminal.进入终端。 Ganache has rolled out a new update that fixed previous bugs.
Ganache 推出了一个新的更新,修复了以前的错误。
type类型
npm install -g ganache-cli --force
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.