I Am Trying To Use An npmjs module named systeminformation in the documentation it is given to use it as it is down below but it gives me an error module not found
the code from documentation:
const si = require('systeminformation');
si.cpu()
.then(data => console.log(data))
.catch(error => console.error(error));
My Code :
const si = require('systeminformation');
comp=()=>{
si.cpu()
.then(data => console.log(data))
.catch(error => console.error(error));
}
please help me with this I tried reinstalling the node module npm i systeminformation
The NpmJS Module -- https://www.npmjs.com/package/systeminformation
Install crypto:
Npm install -i crypto
This will install missing module to your local node modules