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
Nov 30, 2018 in Blockchain by digger
• 26,550 points
328 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 Nov 30, 2018 by Omkar
• 67,600 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,020 points

edited Oct 11, 2018 by Omkar 341 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
60 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
55 views
0 votes
1 answer

NPM Error While Installing Lisk Dependencies

Meet the lib sodium fails. You're using node ...READ MORE

answered Jun 18, 2018 in Blockchain by charlie_brown
• 7,720 points
60 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
159 views
0 votes
1 answer
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,600 points
324 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
• 67,600 points
218 views