【发布时间】:2020-04-15 09:05:03
【问题描述】:
我在我的项目中使用 bower 进行依赖管理。但现在我想转向 node 和 npm。但问题是我的依赖很少不是像Smooth-Div-Scroll1和swiftype-search-jquery2这样的节点模块
如何在我的节点项目中管理所有这些依赖项。当我尝试做
"swiftype-search-jquery": "git@github.com:swiftype/swiftype-search-jquery.git",
"smooth-div-scroll": "git@github.com:tkahn/Smooth-Div-Scroll.git",
无法下载依赖并抛出错误
npm ERR! code ENOPACKAGEJSON npm ERR! package.json Non-registry package missing package.json: swiftype-search-jquery@git+ssh://git@github.com/swiftype/swiftype-search-jquery.git. npm ERR! package.json npm can't find a package.json file in your current directory.
这些依赖项的文件夹中没有 package.json。
【问题讨论】:
标签: npm bower dependency-management