npm doesn’t save to package.json

Problem:

running npm syntax –> npm install <package> –save

doesn’t write to package.json

 

Solution:

create empty package.json first containing curly bracket only {}

Leave a Reply