Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

repos does not work #10

Closed
handongw opened this issue Nov 17, 2014 · 7 comments · Fixed by #11
Closed

repos does not work #10

handongw opened this issue Nov 17, 2014 · 7 comments · Fixed by #11

Comments

@handongw
Copy link

"repos":{
"sigma-svcbus" : "http://torvm-core12.sigmasys.net:4873/"
}

sigma-svcbus is in a private npm repository.

I manually run the following command and it works:npm install "sigma-svcbus@*" --registry http://torvm-core12.sigmasys.net:4873/

the commands generated by npm-workspace does not work:
npm ERR! command "/home/handongw/node-v0.10.33-linux-x64/bin/node" "/home/handongw/node-v0.10.33-linux-x64/bin/npm" "install" "sigma-svcbus@*" "--registry "http://torvm-core12.sigmasys.net:4873/\""

should be be two arguments? "--registry "http://torvm-core12.sigmasys.net:4873/\""

@mariocasciaro
Copy link
Owner

I'm pretty sure there is something else going on. Could you please post the npm-debug.log?

@handongw
Copy link
Author

attached npm-debug.log.

error message on console:

[npm-workspace] npm install [email protected] for
/home/handongw/wexford/cs-notify
npm ERR! 404 404 Not Found: sigma-svcbus
npm ERR! 404
npm ERR! 404 'sigma-svcbus' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'cs-server'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Linux 2.6.32-504.el6.x86_64
npm ERR! command "/home/handongw/node-v0.10.33-linux-x64/bin/node"
"/home/handongw/node-v0.10.33-linux-x64/bin/npm" "install" "sigma-svcbus@*"
"--registry "http://torvm-core12.sigmasys.net:4873/\""
npm ERR! cwd /home/handongw/wexford/cs-server
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/handongw/wexford/cs-server/npm-debug.log
npm ERR! not ok code 0

[npm-workspace] npm install [email protected] for
/home/handongw/wexford/cs-server
npm ERR! 404 404 Not Found: sigma-svcbus
npm ERR! 404
npm ERR! 404 'sigma-svcbus' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'cs-server'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Linux 2.6.32-504.el6.x86_64
npm ERR! command "/home/handongw/node-v0.10.33-linux-x64/bin/node"
"/home/handongw/node-v0.10.33-linux-x64/bin/npm" "install"
npm ERR! cwd /home/handongw/wexford/cs-server
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/handongw/wexford/cs-server/npm-debug.log
npm ERR! not ok code 0

On Mon, Nov 17, 2014 at 2:19 PM, Mario Casciaro [email protected]
wrote:

I'm pretty sure there is something else going on. Could you please post
the npm-debug.log?


Reply to this email directly or view it on GitHub
#10 (comment)
.

@mariocasciaro
Copy link
Owner

@i-e-b do you have advice on this?

@i-e-b
Copy link
Contributor

i-e-b commented Nov 18, 2014

Hi @mariocasciaro -- I think this might be a Windows vs. Linux thing: I have several users on Win7/8 boxes using this happily. I think handongw is right, and it's the parsing of the command line args that is causing the problem. Should be split for *nix and joined for Win32.

I'm away from my Linux box for the next day, but this should fix it:
i-e-b@f043002

@handongw -- can you please try applying this change and report back?

@handongw
Copy link
Author

the change in npm-workspace.js should be

322 if (altRepository) {
323 installArgs.push('--registry');
324 installArgs.push(altRepository);
325 }

test it on CentOS 6.6

@handongw
Copy link
Author

I wrote the email here because the bower-workspace issue link broken:
https://github.com/nexdynamic/bower-workspace/issues.
I saw you own https://github.com/chaosmark/npm-workspace.

I got this errors when run bower-workspace install on CentOS 6.6:

[handongw@localhost skylark]$ date; bower-workspace install; date
Tue Nov 18 09:26:53 PST 2014
[bower-workspace] Installing workspace /home/handongw/skylark
[bower-workspace] Creating link
/home/handongw/skylark/sigma-cpq-app/bower_components/sigma-cpq-ng-controls
-> /home/handongw/skylark/sigma-cpq-ng-controls
[bower-workspace] bower install [email protected] for
/home/handongw/skylark/sigma-cpq-app/bower_components/sigma-cpq-ng-controls

events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:1001:11)
at Process.ChildProcess._handle.onexit (child_process.js:792:34)
Tue Nov 18 09:26:53 PST 2014

[handongw@localhost skylark]$ node --version
v0.10.33
[handongw@localhost skylark]$ npm --version
1.4.28
[handongw@localhost skylark]$ bower-workspace --version
0.1.0

[handongw@localhost skylark]$ uname -am
Linux localhost.localdomain 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15
04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

On Mon, Nov 17, 2014 at 5:19 PM, Mario Casciaro [email protected]
wrote:

I'm pretty sure there is something else going on. Could you please post
the npm-debug.log?


Reply to this email directly or view it on GitHub
#10 (comment)
.

@i-e-b
Copy link
Contributor

i-e-b commented Nov 18, 2014

@handongw -- I think the bower-workspace project is at https://github.com/chaosmark/bower-workspace

I will check the changes against Windows and Ubuntu and make another PR as soon as I can.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants