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,170 points
179 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
• 67,660 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
• 67,660 points
1,244 views
0 votes
2 answers

Truffle compile: Cant find module error

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

answered Feb 19 in Blockchain by Loki
205 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,550 points
334 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
169 views
0 votes
1 answer
0 votes
1 answer

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

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by ariaholic
• 7,340 points
89 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 in Blockchain by Rohit
43 views
0 votes
1 answer

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

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

answered Jan 23 in Blockchain by Omkar
• 67,660 points
51 views