node.js check your RAM specification
Please read how to initialize npm from this post.
1. Free Memory
First, you need to type the 'const os = require('os');' to import the os module.
After that type 'console.log(os.freemem());'.
Now run the node to run index.js or index.
Enter: need to check your file path
- node index.js
- node index
2. Total Memory
First, you need to type the 'const os = require('os');' to import the os module.
After that type 'console.log(os.totalmem());'.
Now run the node to run index.js or index.
Enter: need to check your file path
- node index.js
- node index
After you type 1,2 Your OS system RAM info will appear on the Terminal.
댓글
댓글 쓰기