meinreflection
asked on
npm package manager from node.js returns EPROTOTYE error when running under Solaris 11.3
Hi,
I am running on Solaris 11.3 and tries to run the npm package from NODE downloaded from the csw.org and whenever I try to run the npm package installer I got the following:
npm ERR! SunOS 5.11
npm ERR! argv "/opt/Node/bin/node" "/opt/Node/bin/npm" "install" "npm" "--global"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code EPROTOTYPE
npm ERR! errno EPROTOTYPE
npm ERR! syscall connect
npm ERR! connect EPROTOTYPE
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /export/home/wto/npm-debug .log
I don't understand what was wrong with the configuration and I am completely new on NODE and npm so any help is appreciated.
thanks to all first
meinreflection
I am running on Solaris 11.3 and tries to run the npm package from NODE downloaded from the csw.org and whenever I try to run the npm package installer I got the following:
npm ERR! SunOS 5.11
npm ERR! argv "/opt/Node/bin/node" "/opt/Node/bin/npm" "install" "npm" "--global"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code EPROTOTYPE
npm ERR! errno EPROTOTYPE
npm ERR! syscall connect
npm ERR! connect EPROTOTYPE
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /export/home/wto/npm-debug
I don't understand what was wrong with the configuration and I am completely new on NODE and npm so any help is appreciated.
thanks to all first
meinreflection
[EPROTOTYPE]
Protocol wrong type for socket.
Which basically means that npm is not compiled correctly for your system.
Is it SPARC or PC system?
Protocol wrong type for socket.
Which basically means that npm is not compiled correctly for your system.
Is it SPARC or PC system?
ASKER
hi gheist
It's a x86 system. I used the csw.org packages.
It's a x86 system. I used the csw.org packages.
ASKER
Correction:
The Solaris is x64.
I downloaded the node.js package from the official site. The filename is "node-v0.12.2-sunos-x64.ta r.gz".
The Solaris is x64.
I downloaded the node.js package from the official site. The filename is "node-v0.12.2-sunos-x64.ta
ASKER
This is the log
sudo npm explore npm -g -- npm install node-gyp@latest
0 info it worked if it ends with ok
1 verbose cli [ '/opt/Node/bin/node',
1 verbose cli '/opt/Node/bin/npm',
1 verbose cli 'install',
1 verbose cli 'node-gyp@latest' ]
2 info using npm@2.7.4
3 info using node@v0.12.2
4 silly cache add args [ 'node-gyp@latest', null ]
5 verbose cache add spec node-gyp@latest
6 silly cache add parsed spec { raw: 'node-gyp@latest',
6 silly cache add scope: null,
6 silly cache add name: 'node-gyp',
6 silly cache add rawSpec: 'latest',
6 silly cache add spec: 'latest',
6 silly cache add type: 'tag' }
7 verbose addNamed node-gyp@latest
8 silly addNamed semver.valid null
9 silly addNamed semver.validRange null
10 info addNameTag [ 'node-gyp', 'latest' ]
11 silly mapToRegistry name node-gyp
12 silly mapToRegistry using default registry
13 silly mapToRegistry registry http://registry.npmjs.org/
14 silly mapToRegistry uri http://registry.npmjs.org/node-gyp
15 verbose addNameTag registry:http://registry.npmjs.org/node-gyp not in flight; fetching
16 verbose request uri http://registry.npmjs.org/node-gyp
17 verbose request no auth needed
18 info attempt registry request try #1 at 10:38:03 AM
19 verbose request id e547a651d8e1b086
20 http request GET http://registry.npmjs.org/node-gyp
21 info retry will retry, error on last attempt: Error: connect EPROTOTYPE
22 info attempt registry request try #2 at 10:38:13 AM
23 http request GET http://registry.npmjs.org/node-gyp
24 info retry will retry, error on last attempt: Error: connect EPROTOTYPE
25 info attempt registry request try #3 at 10:39:13 AM
26 http request GET http://registry.npmjs.org/node-gyp
27 verbose stack Error: connect EPROTOTYPE
27 verbose stack at exports._errnoException (util.js:746:11)
27 verbose stack at connect (net.js:842:19)
27 verbose stack at net.js:945:9
27 verbose stack at GetAddrInfoReqWrap.asyncCa llback [as callback] (dns.js:81:16)
27 verbose stack at GetAddrInfoReqWrap.onlooku p [as oncomplete] (dns.js:99:10)
28 verbose cwd /opt/Node/lib/node_modules /npm
29 error SunOS 5.11
30 error argv "/opt/Node/bin/node" "/opt/Node/bin/npm" "install" "node-gyp@latest"
31 error node v0.12.2
32 error npm v2.7.4
33 error code EPROTOTYPE
34 error errno EPROTOTYPE
35 error syscall connect
36 error connect EPROTOTYPE
37 error If you need help, you may report this error at:
37 error <https://github.com/npm/npm/issues>
38 verbose exit [ 1, true ]
sudo npm explore npm -g -- npm install node-gyp@latest
0 info it worked if it ends with ok
1 verbose cli [ '/opt/Node/bin/node',
1 verbose cli '/opt/Node/bin/npm',
1 verbose cli 'install',
1 verbose cli 'node-gyp@latest' ]
2 info using npm@2.7.4
3 info using node@v0.12.2
4 silly cache add args [ 'node-gyp@latest', null ]
5 verbose cache add spec node-gyp@latest
6 silly cache add parsed spec { raw: 'node-gyp@latest',
6 silly cache add scope: null,
6 silly cache add name: 'node-gyp',
6 silly cache add rawSpec: 'latest',
6 silly cache add spec: 'latest',
6 silly cache add type: 'tag' }
7 verbose addNamed node-gyp@latest
8 silly addNamed semver.valid null
9 silly addNamed semver.validRange null
10 info addNameTag [ 'node-gyp', 'latest' ]
11 silly mapToRegistry name node-gyp
12 silly mapToRegistry using default registry
13 silly mapToRegistry registry http://registry.npmjs.org/
14 silly mapToRegistry uri http://registry.npmjs.org/node-gyp
15 verbose addNameTag registry:http://registry.npmjs.org/node-gyp not in flight; fetching
16 verbose request uri http://registry.npmjs.org/node-gyp
17 verbose request no auth needed
18 info attempt registry request try #1 at 10:38:03 AM
19 verbose request id e547a651d8e1b086
20 http request GET http://registry.npmjs.org/node-gyp
21 info retry will retry, error on last attempt: Error: connect EPROTOTYPE
22 info attempt registry request try #2 at 10:38:13 AM
23 http request GET http://registry.npmjs.org/node-gyp
24 info retry will retry, error on last attempt: Error: connect EPROTOTYPE
25 info attempt registry request try #3 at 10:39:13 AM
26 http request GET http://registry.npmjs.org/node-gyp
27 verbose stack Error: connect EPROTOTYPE
27 verbose stack at exports._errnoException (util.js:746:11)
27 verbose stack at connect (net.js:842:19)
27 verbose stack at net.js:945:9
27 verbose stack at GetAddrInfoReqWrap.asyncCa
27 verbose stack at GetAddrInfoReqWrap.onlooku
28 verbose cwd /opt/Node/lib/node_modules
29 error SunOS 5.11
30 error argv "/opt/Node/bin/node" "/opt/Node/bin/npm" "install" "node-gyp@latest"
31 error node v0.12.2
32 error npm v2.7.4
33 error code EPROTOTYPE
34 error errno EPROTOTYPE
35 error syscall connect
36 error connect EPROTOTYPE
37 error If you need help, you may report this error at:
37 error <https://github.com/npm/npm/issues>
38 verbose exit [ 1, true ]
ASKER
#gheist
I tried the 32 and 64 bit versions for 0.12.2 and still gives the same error.
I tried the 32 and 64 bit versions for 0.12.2 and still gives the same error.
compile yourself. it is a problem with dynamic library loader. Probably you need a system update to run csw.org builds.
ASKER
Hi gheist:
Do you think the "official builds" from nodejs.org require updated to csw.org libraries?
Do you think the "official builds" from nodejs.org require updated to csw.org libraries?
ASKER
Hi gheist:
http://www.petertribble.co.uk/Solaris/node.html
Only the node.js version built by Peter Tribble works on Solaris 11.3
Thanks for all help
http://www.petertribble.co.uk/Solaris/node.html
Only the node.js version built by Peter Tribble works on Solaris 11.3
Thanks for all help
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for meinreflection's comment #a41396783
for the following reason:
A custom build is really required and I found that here: http://www.petertribble.co.uk/Solaris/node.html
Accepted answer: 0 points for meinreflection's comment #a41396783
for the following reason:
A custom build is really required and I found that here: http://www.petertribble.co.uk/Solaris/node.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also, have you tried running the NPM using sudo? eg:
Open in new window