Truffle init Error Cannot find module original-require

0 votes

When I ran truffle init, I got this error:

Error: Cannot find module 'original-require'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
    at Function.Module._load (internal/modules/cjs/loader.js:475:25)
    at Module.require (internal/modules/cjs/loader.js:598:17)
    at require (internal/modules/cjs/helpers.js:11:18)
    at Object.<anonymous> (C:\Users\saura\AppData\Roaming\npm\node_modules\truffle\build\webpack:\external "original-require":1:1)
    at __webpack_require__ (C:\Users\saura\AppData\Roaming\npm\node_modules\truffle\build\webpack:\webpack\bootstrap 1e465420bd4a8d34abd9:19:1)
    at Object.<anonymous> (C:\Users\saura\AppData\Roaming\npm\node_modules\truffle\build\webpack:\~\truffle-config\index.js:8:1)
    at Object.<anonymous> (C:\Users\saura\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:2394:30)
    at __webpack_require__ (C:\Users\saura\AppData\Roaming\npm\node_modules\truffle\build\webpack:\webpack\bootstrap 1e465420bd4a8d34abd9:19:1)
    at Object.<anonymous> (C:\Users\saura\AppData\Roaming\npm\node_modules\truffle\build\webpack:\~\truffle-core\cli.js:3:1)

How can I solve it?

Oct 24, 2018 in Blockchain by slayer
• 29,370 points
1,943 views

1 answer to this question.

0 votes

I think you need to run this command before truffle init:

npm install original-require
answered Oct 24, 2018 by Omkar
• 69,220 points

Related Questions In Blockchain

0 votes
4 answers

Hyperledger fabric: enrollAdmin.js Error: Cannot find module 'fabric-client'

Change your directory to fabric-samples/fabrcar. And run: npm ...READ MORE

answered Nov 21, 2018 in Blockchain by Omkar
• 69,220 points
5,280 views
0 votes
2 answers

Truffle compile: Cant find module error

You can install babel-register and try again. ...READ MORE

answered Feb 19, 2019 in Blockchain by Loki
3,052 views
0 votes
1 answer

Truffle init: throw er; // Unhandled 'error' event

Modified the cli.bundled.js: replaced https.request with request Diff: ...READ MORE

answered Sep 27, 2018 in Blockchain by digger
• 26,740 points
2,499 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,942 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,468 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,459 views
–1 vote
2 answers

Truffle migrate shows Error: Cannot find module 'truffle-expect'

You can also install the basic truffle-expect ...READ MORE

answered Feb 19, 2019 in Blockchain by Rohit
1,032 views
0 votes
1 answer

truffle migrate Error: “Cannot find module 'truffle-expect'”

Seems like you are missing some modules ...READ MORE

answered Jan 24, 2019 in Blockchain by Omkar
• 69,220 points
1,267 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP