navidabasi
navidabasi

Reputation: 181

installing and starting a new project with js

Hi I just started a course on udemy in order to learn JS and react in the program after installing node and npm we should use npm start but it keeps giving me this ERR which I couldn't find any clue about what should I do.

D:\Private\Projects\JS>npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path D:\Private\Projects\JS\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'D:\Private\Projects\JS\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Navid\AppData\Roaming\npm-cache\_logs\2020-08-27T23_15_42_286Z-debug.log

D:\Private\Projects\JS>

and if you know any good course or ways to start learning JS and react native It will be appreciated

Upvotes: 0

Views: 77

Answers (1)

Mara Oliveira
Mara Oliveira

Reputation: 28

This error normally occurs when you use npm start in wrong folder. Check if you are in the same folder as you package.json file.

If you don't have a package.json file yet you do need to initiate the project by using

npm init -y

You need to make sure you are in the right folder either way.

Upvotes: 1

Related Questions