As per this post it is possible to install npm packages first and then create package.json later on.
I have installed nodeJS in my computer. In an empty folder, when I run below command:
npm install jQuery
It gives below error on console:
D:\Rasik\reactJs\learnJs
`-- jquery@3.2.1
npm WARN enoent ENOENT: no such file or directory, open 'D:\Rasik\reactJs\learnJs\package.json'
npm WARN learnJs No description
npm WARN learnJs No repository field.
npm WARN learnJs No README data
npm WARN learnJs No license field.
I'm working on an HTML Vanilla JavaScript (JS) project. I want to use npm to get latest packages or the JS files. I don't want to do npm init before installing the packages as this is not some ReactJS kind of application.