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.
我有一个像这样发布到私有 NPM 存储库的 Node 模块
我想要一个package.json依赖项来下载用于本地安装的 DEV 模块,但用于生产构建的 RC 模块。
package.json
有没有办法在 NPM 中实现它?
您需要使用范围(即:@local)将工件发布到您的 sinopia 实例,然后将该范围注册到您的本地实例。然后,在执行npm install所有作用域依赖项时,将发送到您的本地仓库,其他所有内容都将发送到默认仓库。
npm install
我创建了一个 JS Fiddle 来演示我的问题:http: //jsfiddle.net/pqTqH/
如何更新我的 CSS 以使表格垂直居中而不设置height表格或 a top-margin?即使只有 1 行,我也希望表
height
top-margin