Module not found: Can't resolve './truffle-contract/build/contracts

0 votes

Hi All,

Module not found: Can't resolve './truffle-contract/build/contracts

What should I do to run this, I see that no build folder is created after even running below commands-

truffle compile
truffle Migrate

Where I am going wrong.

May 9 in Blockchain by anonymous

edited May 9 by Omkar 63 views

1 answer to this question.

+1 vote

Hey! Firstly, there seems to be a typo in your command. The command mentioned in the question is

$ truffle Migrate

The command should be

$ truffle migrate

Seems like the truffle contract module is missing. To install the truffle contract module, run the following command in the terminal:

$ npm install -g truffle-contract
answered May 9 by Omkar
• 67,480 points

Related Questions In Blockchain

+1 vote
5 answers

How to solve "truffle: command not found" error in blockchain?

First try restarting the system and then ...READ MORE

answered Jul 16, 2018 in Blockchain by slayer
• 29,050 points
867 views
0 votes
1 answer

Truffle tutorials "Error:recipient address is not a contract address"

It appears like you have already migrated ...READ MORE

answered Aug 8, 2018 in Blockchain by slayer
• 29,050 points
198 views
0 votes
1 answer

Can't call contract function in truffle console

Inspect the object adoption within the console. You will ...READ MORE

answered Sep 28, 2018 in Blockchain by slayer
• 29,050 points
586 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
141 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
76 views
0 votes
1 answer

Not able to migrate contract in Truffle: Error: No network specified. Cannot determine current network

Make these entries in truffle.js file: module.exports = { ...READ MORE

answered Nov 29, 2018 in Blockchain by Omkar
• 67,480 points
114 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
138 views