Truffle npm run dev throws Error npm ERR Linux 4 15 0-39-generic

0 votes
npm run dev

npm ERR! Linux 4.15.0-39-generic

npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "dev"

npm ERR! node v8.10.0

npm ERR! npm  v3.5.2

npm ERR! path /home/edureka/t/package.json

npm ERR! code ENOENT

npm ERR! errno -2

npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/home/edureka/t/package.json'

npm ERR! enoent ENOENT: no such file or directory, open '/home/edureka/t/package.json'

npm ERR! enoent This is most likely not a problem with npm itself

npm ERR! enoent and is related to npm not being able to find a file.

npm ERR! enoent

npm ERR! Please include the following file with any support request:

npm ERR!     /home/edureka/t/npm-debug.log
Dec 1, 2018 in Blockchain by digger
• 26,740 points
2,300 views

1 answer to this question.

0 votes

The json file required to run dev is missing. To get the package.json file you can run 

npm init

But this by default will create the script for "test". In your case, as you are trying to run "dev", you'll have to make changes to  package.json file. 

answered Dec 1, 2018 by Omkar
• 69,220 points
it showing result

This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help json` for definitive documentation on these fields
and exactly what they do.

Use `npm install <pkg> --save` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
name:xyz

Hey there! 

You need to enter the details to create the package.json file. Field to fill are:

name:
version: 
description: 
entry point: 
test command: 
git repository: 
keywords: 
author: 
license:  

You can leave the irrelevant fields blank. Then you'll be asked a confirmation for the data you have entered. Hit Enter and your  package.json file will be created.

Hi. I get same problem. ANy solution?

Related Questions In Blockchain

+4 votes
2 answers

I am unable to connect Ganache with Truffle/Npm Dev server. Pls help.

The issue is at CurrentProvider. Give the url ...READ MORE

answered Mar 26, 2018 in Blockchain by Perry
• 17,100 points

edited Oct 11, 2018 by Omkar 2,704 views
0 votes
1 answer

'Invalid sender' error after upgrading to geth 1.4.0

Guessing that the JSON RPC stuff changed ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,222 views
0 votes
2 answers

Truffle migrate Error after run testrpc

Simple Solution: // module.exports = { // ...READ MORE

answered Sep 24, 2018 in Blockchain by Wasim
833 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,928 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,456 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,435 views
0 votes
1 answer

truffle npm run dev not working

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

answered Dec 1, 2018 in Blockchain by Omkar
• 69,220 points
1,657 views
0 votes
2 answers

Truffle migrate gives “ Error: No network specified. ”

You have to mention on which network ...READ MORE

answered Aug 13, 2018 in Blockchain by Omkar
• 69,220 points
1,713 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