Npm install reported an error.

  node.js, question

clipboard.png

Directly execute npm install, npm will automatically find the package.json file and install the corresponding library according to the file content. You should not have a package.json file under this folder now, so you made a mistake. Generally, this command will be executed in the root directory of a front-end project to load the development and runtime libraries. If you want to simply load a library, such as jQuery, you need to add the name of the library to the command.npm install jQuery.