foreword
Use the npm install command in the cmd window and report an error:
solve
Judging from the error result, it should be that there is a problem parsing the Json file, so find the package.json file under the green box path, open the json file with vscode, and find that the file is empty, so:
- Use the command initialization to automatically generate the package.json file
npm init -y
- execute the command again
npm install
-
The warning message shows that the package.json file is not fully configured, so we can add it manually:
-
Excuting an order
npm install
Successful installation: