-
Notifications
You must be signed in to change notification settings - Fork 746
install pouchdb-server 出错 #938
Comments
类似的情况, 安装 textlint 时提示 "@azu/format-text" 不存在。 可能是包名带有 "@" 等特殊字符会导致同步失败? |
@cissoid scoped package 无法自动同步,npm 没有暴露出更新信息。我已经帮你同步了一次了。 请使用 cnpm sync @azu/style-format 进行同步 |
原因详见 #908 |
话说,在 install 的时候不是会触发自动同步吗? 2016-06-05 2:49 GMT+08:00 fengmk2 notifications@github.com:
|
@alsotang 按道理是应该 302 到 npmjs.org 的 https://github.com/cnpm/cnpmjs.org/blob/master/controllers/registry/package/list.js#L97 |
看了一下代码,是因为 cnpmjs.org 无法区分当前 scope 是 private 还是 public 的 https://github.com/cnpm/cnpmjs.org/blob/master/middleware/sync_by_install.js#L42 |
马上修复一下。 |
* fix: should sync missing public scoped package on install closes #938 * refactor: sync all scoped packages when config.scopes is empty * test: test on node 6
$ npm set registry http://localhost:7001
$ npm install pouchdb-server --save
报错@jkroso/type不存在:
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\chench3\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "pouchdb-server" "--save"
npm ERR! node v6.2.0
npm ERR! npm v3.9.3
npm ERR! code E404
npm ERR! 404 Not Found: @jkroso/type
npm ERR! 404
npm ERR! 404 '@jkroso/type' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'equals'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! D:\coding\databot\npm-debug.log
改成
npm set registry https://registry.npmjs.org
后就没问题The text was updated successfully, but these errors were encountered: