Skip to content
Advertisement

Tag: server

npm WARN enoent ENOENT: no such file or directory, open ‘C:UsersNuwanstpackage.json’

I just want to install socket.io to my project which is located on 3.chat folder. But when I run following command it shows following Warnings.And its not created a node_modules directory inside my project folder. How to fix this? Answer Have you created a package.json file? Maybe run this command first again. C:UsersNuwanstDocumentsNodeJS3.chat>npm init It creates a package.json file in

Easiest way to get list of files in the server directory

I need to get array of all images (or simply of all files) in directory (e.g. www.example.com/images/). I prefer to use JavaScript but it’s hard to make. So should I use PHP, meybe? Could you please help me – I’m not good at this. Thank you very much! Answer Javascript cannot fetch all files on a server, as it is

Advertisement