Ethereum truffle server command not working

0 votes

When i run truffle server command, I get this error:

Serving static assets in ./build on port 8080...

/usr/local/lib/node_modules/truffle/build/webpack:/~/chokidar/lib/fsevents-handler.js:26

  return (new fsevents(path)).on('fsevent', callback).start();

^

TypeError: fsevents is not a constructor

    at createFSEventsInstance (/usr/local/lib/node_modules/truffle/build/webpack:/~/chokidar/lib/fsevents-handler.js:26:1)

    at setFSEventsListener (/usr/local/lib/node_modules/truffle/build/webpack:/~/chokidar/lib/fsevents-handler.js:80:1)

    at FSWatcher.FsEventsHandler._watchWithFsEvents (/usr/local/lib/node_modules/truffle/build/webpack:/~/chokidar/lib/fsevents-handler.js:244:1)

    at FSWatcher.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/chokidar/lib/fsevents-handler.js:378:1)

    at gotStat (fs.js:1783:21)

    at FSReqWrap.oncomplete (fs.js:152:21)
Nov 29, 2018 in Blockchain by slayer
• 29,050 points
120 views
same issue,,anyone solve it...

Did you try:

truffle init webpack

Worked for me.

1 answer to this question.

0 votes

Try this command to create project:

truffle init webpack​
answered Nov 29, 2018 by Omkar
• 67,290 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
767 views
0 votes
1 answer

mingw32 set command not working

From standard cmd, the unquoted original works just ...READ MORE

answered Aug 31, 2018 in Blockchain by slayer
• 29,050 points
20 views
0 votes
3 answers

Truffle migrate Could not connect to your Ethereum client.

As mentioned in the previous answer, you ...READ MORE

answered Feb 19 in Blockchain by Dinesh
1,369 views
0 votes
1 answer

truffle npm run dev not working

Are you running this command from the ...READ MORE

answered Nov 30, 2018 in Blockchain by Omkar
• 67,290 points
276 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
126 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
63 views
0 votes
1 answer

Ethereum "truffle server" gives error: TypeError: fsevents is not a constructor

Looks like you have files missing.  Try creating project with: truffle ...READ MORE

answered Nov 30, 2018 in Blockchain by Omkar
• 67,290 points
128 views
0 votes
1 answer

Not able to start testrpc for Ethereum truffle

Hey. It seems like you already have ...READ MORE

answered Nov 28, 2018 in Blockchain by Omkar
• 67,290 points
95 views