npm install 的时候忘记 --save ,后续如何自动加入 package.json 中?
发布于 6 年前 作者 ghostcode 4841 次浏览 来自 问答

如题,以前的低版本 npm install 的时候忘记 --save,现在想自动加入 package.json 中,有什么方法?

搜了一些:

npm install ls node_modules --save

http://www.cnblogs.com/reason-cai/p/6822114.html

https://segmentfault.com/q/1010000008215577

都没有很好的解决.

请问还有别的方法或工具吗?

回到顶部