CNode

npm install 的时候忘记 --save ,后续如何自动加入 package.json 中?

问答
Gghostcode发布于8 年前最后回复8 年前2 回复6068 浏览0 收藏

如题,以前的低版本 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

都没有很好的解决.

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

查看回复

回复 (2)

G
ghostcode#1·8 年前
引用 atian25http://npmjs.com/package/autod

@atian25 好的,我看下,谢谢

参与回复
登录后即可参与回复。登录