Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

install pouchdb-server 出错 #938

Closed
chrischjh opened this issue May 27, 2016 · 7 comments · Fixed by #946
Closed

install pouchdb-server 出错 #938

chrischjh opened this issue May 27, 2016 · 7 comments · Fixed by #946
Assignees
Labels
Milestone

Comments

@chrischjh
Copy link

$ 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 后就没问题

@cissoid
Copy link

cissoid commented Jun 4, 2016

类似的情况, 安装 textlint 时提示 "@azu/format-text" 不存在。

可能是包名带有 "@" 等特殊字符会导致同步失败?

@fengmk2
Copy link
Member

fengmk2 commented Jun 4, 2016

@cissoid scoped package 无法自动同步,npm 没有暴露出更新信息。我已经帮你同步了一次了。

请使用 cnpm sync @azu/style-format 进行同步

@fengmk2
Copy link
Member

fengmk2 commented Jun 4, 2016

原因详见 #908

@fengmk2 fengmk2 closed this as completed Jun 4, 2016
@alsotang
Copy link
Member

alsotang commented Jun 5, 2016

话说,在 install 的时候不是会触发自动同步吗?

2016-06-05 2:49 GMT+08:00 fengmk2 notifications@github.com:

Closed #938 #938.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#938 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/ABGB7wRkP6tPAqmLg-R43PgDP76x9gN7ks5qIcjGgaJpZM4IoL_0
.

@fengmk2
Copy link
Member

fengmk2 commented Jun 5, 2016

@fengmk2
Copy link
Member

fengmk2 commented Jun 5, 2016

看了一下代码,是因为 cnpmjs.org 无法区分当前 scope 是 private 还是 public 的 https://github.com/cnpm/cnpmjs.org/blob/master/middleware/sync_by_install.js#L42

@fengmk2 fengmk2 reopened this Jun 5, 2016
@fengmk2 fengmk2 added the bug label Jun 5, 2016
@fengmk2 fengmk2 self-assigned this Jun 5, 2016
@fengmk2 fengmk2 added this to the 2.x milestone Jun 5, 2016
@fengmk2
Copy link
Member

fengmk2 commented Jun 5, 2016

马上修复一下。

dead-horse pushed a commit that referenced this issue Jun 5, 2016
* 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants