Error while running npm start

Asked

Viewed 4,206 times

1

I did the installation of Node.js following the instructions of the Ionic site, the installation occurred normally but when I try to give the command "npm start" caught this error, it tells me that npm is not finding a directory or a file, and give some errors in the folder package.json... I don’t know how to solve this, guys, follow the step by step and the errors I caught:

MacBook-Pro-de-Lucas:~ lucas$ npm start

npm ERR! Darwin 15.5.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"

npm ERR! node v6.11.0

npm ERR! npm  v3.10.10

npm ERR! path /Users/lucas/package.json

npm ERR! code ENOENT

npm ERR! errno -2

npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open 
'/Users/lucas/package.json'

npm ERR! enoent ENOENT: no such file or directory, open '/Users/lucas/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!     /Users/lucas/npm-debug.log

MacBook-Pro-de-Lucas:~ lucas$

1 answer

0


It seems to me that the problem is that you’re trying to give a npm start at home.

When rotating a npm start, npm tries to find a package.json file, with the definition of what start should do. What you probably want is to run this command inside the root folder of some project that contains a package.json.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.