Answer the question
In order to leave comments, you need to log in
NodeJS console not responding to command input?
After npm start and running the tutorial, I can't enter anything in the console.. I just have to close it, but when I start it again through npm statr, I get an npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\???????\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\???????\packag e.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\???????\AppData\Roaming\npm-cache_logs\2019-12-12T18_36_3 1_735Z-debug.log
The only thing that saves is deleting my-app, after saving copies of the index.js and index.css files and then recreating the my-app root folder. How to solve the problem? And how to use the npm stop command? Write in pacag.json?
Answer the question
In order to leave comments, you need to log in
1. It is very doubtful that the root folder of the project coincides with the user's folder on the computer.
You must first go to the folder with the project, and then run the commands there.
2. If there is a watch in start, then it is logical to stop this process, it should remain hanging all the time. He's supposed to keep track of the files. You can stop this business by pressing ctrl + c and agreeing with the offer.
If at the same time you need to run some more commands, then just open the second instance of the console without stopping start
ps and there are still problems with Russian letters and / or spaces in the paths
What's wrong with the error? It also says ENOENT (hereinafter an approximate translation) there is no input file. Those. entry/start points. See what is written in main in your package.json? Well, in general, check if you are doing everything correctly (according to the tutorial)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question