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

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

BatmanForLifeBatmanForLife
7911 gold badge33 silver badges1212 bronze badges
4
Add a comment |

3 Answers 3


Active Oldest Votes
6
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
usr/create

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.


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

iLuvLogixiLuvLogix
4,12711 gold badge1919 silver badges3838 bronze badges
Add a comment |
3
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.


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

user14180910user14180910
3111 bronze badge
Add a comment |
0
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!


Share
Improve this answer
Follow
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
Submit

Message as a guest


Name
Email Required, yet never before shown


Blog post as a guest


Name
Email

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
Linked
10
While doing npm install obtaining an error as "No such file or directory open"
0
Error developed while beginning the npm server in the react project
Related
1390
Check synchronously if file/directory exists in Node.js
2374
What's the distinction in between dependencies, devDependencies and peerDependencies in npm package.jkid file?
0
angularjs npm start reflects error
1895
Do I commit the package-lock.json file produced by npm 5?
0
npm is not functioning, exactly how deserve to I solve it?
1
"Npm Start" Is Not Working
4
Can anyone explain this error once I run "npm run ng brand-new app"?
3
I can't install expo-cli
0
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.


lang-js
Stack Overcirculation
Products
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.