node.js npm
Improve this question
edited Sep 5 "18 at 15:15

684k162162 gold badges12701270 silver badges13991399 bronze badges
asked Sep 5 "18 at 14:28

7911 gold badge33 silver badges1212 bronze badges
Add a comment |

3 Answers 3

Active Oldest Votes
This is regarded npm not being able to discover a document. The error-message npm ERR! enoent is telling you that the file can"t be found.

You are watching: Npm warn enoent enoent: no such file or directory, open

First inspect if the file actually exists on your fs under that course and inspect the reference-route you usage to contact that file for possible typos.

If this is a fresh task you deserve to call

npm init and node will certainly initliaize your task and create a package.jboy for you..

From the official docs:

Description:npm init have the right to be used to set up a new or existing npm package.

initializer in this case is an npm package named create-, which >will certainly be set up by npx, and then have its main bin executed -- presumably >developing or updating package.jchild and also running any type of other initialization-associated >operations.

The init command is transformed to a corresponding npx procedure as follows:

npm init foo -> npx create-foonpm init
usr/foo -> npx
usr/create-foonpm init
usr -> npx

Any added alternatives will certainly be passed straight to the command, so npm init foo --hello will map to npx create-foo --hello.

If the initializer is omitted (by simply calling npm init), init will certainly loss earlier to heritage init actions. It will certainly ask you a bunch of concerns, and also then create a package.jboy for you. It will attempt to make reasonable guesses based upon existing fields, dependencies, and also alternatives schosen. It is strictly additive, so it will keep any type of fields and also values that were currently collection. You deserve to additionally use -y/--yes to skip the questionnaire altogether. If you pass --scope, it will produce a scoped package.

For more detailed indevelopment please read the main docs around npm init.

Improve this answer
edited Dec 17 "20 at 10:57
answered Sep 5 "18 at 14:37

4,12711 gold badge1919 silver badges3838 bronze badges
Add a comment |
this happened through me,as well. I turned out i remained in the wrong catalog once I run the npm command also, this is why I obtained the error messages. Changignt the directory through the cd command resolved the concern for me.

Improve this answer
answered Aug 28 "20 at 7:15

3111 bronze badge
Add a comment |
Validate your course "C:UsersshagyDesktop3RD YEAR 2ND SEMESTERSPMNew folderSPM-SMS" does this really has actually package.jkid file? if no then you need to install npm aacquire (command also "npm init") to ensure package.jboy file appears in the same catalog as discussed in your error. Hope this helps!

Improve this answer
answered Dec 9 "19 at 18:30

Prateek shrivastavaPrateek shrivastava
5933 bronze badges
Add a comment |

Your Answer

Thanks for contributing an answer to Stack Overflow!

Please be certain to answer the question. Provide details and share your research!

But avoid

Asking for help, clarification, or responding to other answers.Making statements based on opinion; ago them up via references or personal experience.

To learn even more, check out our tips on composing good answers.

See more: Superhero Emojis For Android, Superhero On Google Android 9

Draft saved
Draft discarded

Sign up or log in

Sign up making use of Google
Sign up making use of Facebook
Sign up utilizing Email and also Password

Message as a guest

Email Required, yet never before shown

Blog post as a guest


Required, yet never shown

Message Your Answer Discard

By clicking “Post Your Answer”, you agree to our regards to business, privacy plan and also cookie policy

Not the answer you're looking for? Browse various other concerns tagged node.js npm or ask your very own question.

The Overcirculation Blog
Featured on Meta
While doing npm install obtaining an error as "No such file or directory open"
Error developed while beginning the npm server in the react project
Check synchronously if file/directory exists in Node.js
What's the distinction in between dependencies, devDependencies and peerDependencies in npm package.jkid file?
angularjs npm start reflects error
Do I commit the package-lock.json file produced by npm 5?
npm is not functioning, exactly how deserve to I solve it?
"Npm Start" Is Not Working
Can anyone explain this error once I run "npm run ng brand-new app"?
I can't install expo-cli
unable to run the react project- the adhering to error enoent ENOENT
Hot Network Questions more hot questions

Inquiry feed
Subscribe to RSS
Inquiry feed To subscribe to this RSS feed, copy and paste this URL right into your RSS reader.

Stack Overcirculation
Company type of
Stack Exreadjust Network
site style / logo © 2021 Stack Exadjust Inc; user contributions licensed under cc by-sa. rev2021.9.10.40187

Stack Overflow works finest through JavaScript allowed

Your privacy

By clicking “Accept all cookies”, you agree Stack Exreadjust have the right to store cookies on your gadget and disclose information in accordance with our Cookie Policy.