Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我看到安装hiredis需要一种我以前从未见过的格式。而不是预期的:
npm install hiredis
...格式实际上是:
npm install hiredis redis
我应该如何将hiredis添加到我的package.json依赖项中以便正确安装?
如果可用,该redis模块将自动使用。hiredis
redis
hiredis
npm install redis hiredis
等同于
npm install redis npm install hiredis
简而言之,只需将其包含在您的package.json任何其他模块中即可。
package.json
"dependencies": { "redis": "", "hiredis": "" }