Error running npm start

0

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

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$
    
asked by anonymous 04.07.2017 / 23:12

1 answer

0

I think the problem is that you're trying to give npm start to your home.

When running 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 any project that contains a package.json .

    
04.07.2017 / 23:51