上QQ阅读APP看书,第一时间看更新
Initializing package.json
We will need a package.json file to store meta information about the project, list the module dependencies with version numbers, and to define run scripts. To initialize a package.json file in the project folder, go to the project folder from the command line and run npm init, then follow the instructions to add the necessary details. With package.json created, we can proceed with setup and development, and update the file as more modules are required throughout code implementation.