Initialize NPM

Initialize NPM

We will need to initialize npm to get the default package.json and install dependencies

Initialize NPM


mkdir new-react-app

cd new-react-app

npm init        

npm init will initiate the project and add the needed boilerplate for you. You be prompted to answer some questions/options as follows (inside the red boxes):

No alt text provided for this image


Then provide you with the content of the package.json to review and accept

No alt text provided for this image


Write “yes” and click enter. Now, you have an empty project. You can open it inside Visual Studio Code (Code .).

The directory will only contain package.json

No alt text provided for this image


===========================


要查看或添加评论,请登录

Rany ElHousieny, PhD???的更多文章

社区洞察