we need to create package.json by entering npm init
and enter package name as package.json and optionally fill other requirements else press enter and at last
enter yes to confirm.
Great!!
Now install any npm package without any error.
npm install <package_name>
Windows10