Uncaught Error: ENOENT: no such file or directory, open site:stackoverflow.com code example
Example 1: ENOENT, no such file or directory
Have you created a package.json file? Maybe run this command first again.
C:\Users\Nuwanst\Documents\NodeJS\3.chat>npm init
It creates a package.json file in your folder.
Then run,
C:\Users\Nuwanst\Documents\NodeJS\3.chat>npm install socket.io --save
The --save ensures your module is saved as a dependency in your package.json file.
Example 2: FileNotFoundError: No such file or directory.
when i had that problem
I just put my file in the same folder as
my python script and it worked out.
if it doesn't work for you make sure the file exists or is called that exact word.
if it still doesn't work for you check if the file is in the directory of python.
you might be wondering what the frik is a directory but in this topic I
can't help you because i also don't understand the frik about directory