saveError ENOENT: no such file or directory, open 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: npm warn saveerror enoent no such file or directory open package.json'
COPY books/package*.json ./ ## inside books folder
COPY package*.json ./ ## not inside books folder
Example 3: ENOENT: no such file or directory, open '//data.trie'
custom:
bundle: # For serverless fix
externals: # Set non Webpack compatible packages as externals
- pdfkit # They'll be included in the node_modules/