Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It should also be pointed out you rarely need to edit the package.json manually:

npm init: Prompts for basic/common package.json entries

npm install --save: Install a module and place into dependencies

npm install --save-dev: Install a module and place into dev dependencies

npm install --save-optional: Install a module and place into optional dependencies

http://blog.timoxley.com/post/22371787222/handy-new-options-...



I was debating whether or not to put it in there. Since Isaac mentions it in his article that I link to, I figured most people would see it there. Very valid point though. I think I may edit the post and put it up there. Thanks!


...and the post has been updated. Thanks again.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: