-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download package failed after sinopia config registry #19
Comments
Can you please restore ~/.npmrc to a default configuration and try again? I believe something like this could happen if you have an npmjs session ([_token] section in ~/.npmrc). I'm not sure though since 407 error code is weird, and we use 403 instead, so I'm a bit confused about where it is coming from. |
I restore my npmrc and when I try to download a module which I have already it pass okay but when I try to download a module which Idon't have it will fail when this error: C:\Users\Tuto>npm install karma-qunit npm ERR! System Windows_NT 6.1.7601 |
'ECONNREFUSED' means that there is nothing listening on that port, i.e. sinopia is not running. |
How can i check if sinopia is running or not? |
Hmm... launch it in the terminal and look at the logs? I'm sorry, but I have no idea how are you running it. And frankly speaking I have no idea what Windows is, so I might not understand something. You might find a better luck asking it in node.js mailing list, because sinopia is an ordinary http server, running it is no different than running node.js itself, and there are a lot of people there who can explain it better than me.
|
You should be able to open the task manager and see if a Node process is running. If not that is your first step... start the sinopia process. If it is running you should make sure it is running on port 4873. If it still doesn't work it could be a firewall issue. |
that's okay Node process is running and the sinopia started, so when i try to download some package it's always failed and i got this message: C:\Users\tuto>npm install karma npm ERR! System Windows_NT 6.1.7601 |
It would be helpful to see sinopia's own config and logs. |
I tried to install for exemple Karma and this what I got, this my .npmrc file config :
and my npm-debug.log file log:
|
and this config.yaml:
|
Sinopia logs, not npm ones... If you uncomment a very last line in your config file (and preferably set level to "trace"), you'll see file "sinopia.log" containing all information about what is it doing. |
Okay, so I do it and this is sinopia log file, my guess is a timeout connexion problem isn't it?
|
Yeah, it is. No idea what's causing it. You can try to replace https://registry.npmjs.org/ with http://registry.npmjs.eu/. This way you can rule out npmjs issues. |
I believe you're behind a proxy, and it's the proxy configuration at fault here. See #254 for details. I disabled |
update install instructions
I start with install sinopia version 0.4.3 and it finish well.Then, I configured the registry as: npm set registry http://localhost:4873/
So after that I tried to download some package and it didn't work and i have got that;
C:\Users\tuto>npm install grunt
npm http GET http://localhost:4873/grunt
npm http 407 http://localhost:4873/grunt
npm ERR! TypeError: Cannot call method 'match' of undefined
npm ERR! at RegClient. (C:\Program Files\nodejs\node_modules\npm
node_modules\npm-registry-client\lib\request.js:119:29)
npm ERR! at cb (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-re
gistry-client\lib\request.js:158:9)
npm ERR! at RegClient. (C:\Program Files\nodejs\node_modules\npm
node_modules\npm-registry-client\lib\request.js:252:14)
npm ERR! at Request.self.callback (C:\Program Files\nodejs\node_modules\npm
node_modules\request\request.js:129:22)
npm ERR! at Request.EventEmitter.emit (events.js:98:17)
npm ERR! at Request. (C:\Program Files\nodejs\node_modules\npm\no
de_modules\request\request.js:873:14)
npm ERR! at Request.EventEmitter.emit (events.js:117:20)
npm ERR! at IncomingMessage. (C:\Program Files\nodejs\node_module
s\npm\node_modules\request\request.js:824:12)
npm ERR! at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR! at streamreadable.js:920:16
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "grunt"
npm ERR! cwd C:\Users\tuto
npm ERR! node -v v0.10.19
npm ERR! npm -v 1.3.11
npm ERR! type non_object_property_call
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\tutp\npm-debug.log
npm ERR! not ok code 0
So what Iam supposed to do???
The text was updated successfully, but these errors were encountered: