I'm trying to develop my ethereum dapp and run in on a web browser.
(我正在尝试开发以太坊dapp并在网络浏览器中运行。)
I downloaded "web3-eth-accounts" module via terminal.(我通过终端下载了“ web3-eth-accounts”模块。)
In my javascript file, I import it like this.(在我的javascript文件中,我是这样导入的。)
var Accounts = require('web3-eth-accounts');
When I run my program via terminal typing "npm run dev"
(当我通过终端输入“ npm run dev”运行程序时)
In my console I get
(在我的控制台中,我得到)
Uncaught Error: Cannot find module 'web3-eth-accounts'
I tried different methods, but I'm still stuck.
(我尝试了不同的方法,但仍然遇到问题。)
Any solutions?(有什么办法吗?)
Thank you for your time!(感谢您的时间!)
ask by CerolDaDeveloper translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…