Fresh node installation, strongloop wont install tho

341 views
Skip to first unread message

brane...@googlemail.com

unread,
May 6, 2015, 6:44:14 PM5/6/15
to stron...@googlegroups.com

logged in as root and got chown -R on /usr/local 

---root@Branimirs-iMac:
|

----~$ npm install -g strongloop

npm WARN deprecated json-file-plus@2.0.0: Before v3.0.0, errors in fs.writeFile would not be propagated

> heapdump@0.3.5 install /usr/local/lib/node_modules/strongloop/node_modules/strong-supervisor/node_modules/heapdump

> node-gyp rebuild


gyp WARN EACCES user "root" does not have permission to access the dev dir "/var/root/.node-gyp/0.12.2"

gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/strongloop/node_modules/strong-supervisor/node_modules/heapdump/.node-gyp"

gyp WARN install got an error, rolling back install

gyp WARN install got an error, rolling back install

gyp ERR! configure error

gyp ERR! stack Error: connect ECONNREFUSED

gyp ERR! stack     at exports._errnoException (util.js:746:11)

gyp ERR! stack     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1000:19)

gyp ERR! System Darwin 14.3.0

gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /usr/local/lib/node_modules/strongloop/node_modules/strong-supervisor/node_modules/heapdump

gyp ERR! node -v v0.12.2

gyp ERR! node-gyp -v v1.0.3

gyp ERR! not ok

npm WARN deprecated json-file-plus@1.0.7: Before v3.0.0, errors in fs.writeFile would not be propagated

npm WARN optional dep failed, continuing loopback@2.17.2

npm ERR! fetch failed https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.5.tgz

npm WARN retry will retry, error on last attempt: Error: connect ECONNREFUSED

npm ERR! fetch failed https://registry.npmjs.org/raw-body/-/raw-body-1.3.1.tgz

npm WARN retry will retry, error on last attempt: Error: connect ECONNREFUSED

npm ERR! fetch failed https://registry.npmjs.org/type-is/-/type-is-1.5.7.tgz

npm WARN retry will retry, error on last attempt: Error: connect ECONNREFUSED

npm ERR! fetch failed https://registry.npmjs.org/accepts/-/accepts-1.1.4.tgz

npm WARN retry will retry, error on last attempt: Error: connect ECONNREFUSED

npm ERR! fetch failed https://registry.npmjs.org/debug/-/debug-2.0.0.tgz

npm WARN retry will retry, error on last attempt: Error: connect ECONNREFUSED

npm ERR! fetch failed https://registry.npmjs.org/finalhandler/-/finalhandler-0.2.0.tgz

npm WARN retry will retry, error on last attempt: Error: connect ECONNREFUSED

npm ERR! fetch failed https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-0.0.2.tgz

npm WARN retry will retry, error on last attempt: Error: connect ECONNREFUSED

npm ERR! fetch failed https://registry.npmjs.org/rc/-/rc-0.3.5.tgz

npm WARN retry will retry, error on last attempt: Error: connect ECONNREFUSED

> strong-fo...@1.2.3 install /usr/local/lib/node_modules/strongloop/node_modules/strong-supervisor/node_modules/strong-fork-syslog

> node-gyp rebuild


gyp WARN EACCES user "root" does not have permission to access the dev dir "/var/root/.node-gyp/0.12.2"

gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/strongloop/node_modules/strong-supervisor/node_modules/strong-fork-syslog/.node-gyp"

gyp WARN install got an error, rolling back install

gyp WARN install got an error, rolling back install

gyp ERR! configure error

gyp ERR! stack Error: connect ECONNREFUSED

gyp ERR! stack     at exports._errnoException (util.js:746:11)

gyp ERR! stack     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1000:19)

gyp ERR! System Darwin 14.3.0

gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /usr/local/lib/node_modules/strongloop/node_modules/strong-supervisor/node_modules/strong-fork-syslog

gyp ERR! node -v v0.12.2

gyp ERR! node-gyp -v v1.0.3

gyp ERR! not ok

npm WARN optional dep failed, continuing heapdump@0.3.5

> strong-agent@1.4.0 install /usr/local/lib/node_modules/strongloop/node_modules/strong-agent

> node-gyp rebuild || exit 0


gyp WARN EACCES user "root" does not have permission to access the dev dir "/var/root/.node-gyp/0.12.2"

gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/strongloop/node_modules/strong-agent/.node-gyp"

gyp WARN install got an error, rolling back install

gyp WARN install got an error, rolling back install

gyp ERR! configure error

gyp ERR! stack Error: connect ECONNREFUSED

gyp ERR! stack     at exports._errnoException (util.js:746:11)

gyp ERR! stack     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1000:19)

gyp ERR! System Darwin 14.3.0

gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /usr/local/lib/node_modules/strongloop/node_modules/strong-agent

gyp ERR! node -v v0.12.2

gyp ERR! node-gyp -v v1.0.3

gyp ERR! not ok

npm WARN optional dep failed, continuing strong-fork-syslog@1.2.3

npm WARN optional dep failed, continuing loopback-explorer@1.7.2

npm ERR! Darwin 14.3.0

npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "strongloop"

npm ERR! node v0.12.2

npm ERR! npm  v2.7.4

npm ERR! code ECONNREFUSED

npm ERR! errno ECONNREFUSED

npm ERR! syscall connect


npm ERR! Error: connect ECONNREFUSED

npm ERR!     at exports._errnoException (util.js:746:11)

npm ERR!     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1000:19)

npm ERR!  { [Error: connect ECONNREFUSED]

npm ERR!   code: 'ECONNREFUSED',

npm ERR!   errno: 'ECONNREFUSED',

npm ERR!   syscall: 'connect',

npm ERR!   parent: 'strong-arc' }

npm ERR!

npm ERR! If you are behind a proxy, please make sure that the

npm ERR! 'proxy' config is set properly.  See: 'npm help config'


npm ERR! Please include the following file with any support request:

npm ERR!     /private/var/root/npm-debug.log


what could be the issue? other packages install like a charm...

Ryan Graham

unread,
May 6, 2015, 8:52:38 PM5/6/15
to stron...@googlegroups.com
You appear to have a connectivity issue. The permissions errors can mostly be ignored, since they are followed by the log message saying it is attempting to use a different temp location.

The error that is causing the installation to fail is you can't seem to connect to the npm registry.

Based on what http://status.npmjs.org/ is showing me at the time I'm writing this.. do you happen to live somewhere in the Asia/Pacific region that is served by the NZ server?

~Ryan 

--
You received this message because you are subscribed to the Google Groups "StrongLoop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to strongloop+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Ryan Graham
Dev in Charge of Ops @ StrongLoop, Inc.
ry...@strongloop.com

brane...@googlemail.com

unread,
May 7, 2015, 4:54:45 AM5/7/15
to stron...@googlegroups.com
I live in Europe (Germany) .. btw. I also tried from the european repo. but I got the same result :(  
...

Ryan Graham

unread,
May 7, 2015, 1:19:32 PM5/7/15
to stron...@googlegroups.com
Are you behind a proxy of some kind? I find it odd that npmjs.org is only refusing your connections if you are trying to install strongloop. Is there anything different about how you're installing strongloop vs other npm modules, like running as a different user?

~Ryan

--
You received this message because you are subscribed to the Google Groups "StrongLoop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to strongloop+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

brane...@googlemail.com

unread,
May 8, 2015, 5:28:19 AM5/8/15
to stron...@googlegroups.com
I'm not behind a proxy, at least none that I know of. All of my npm modules are being installed by my root user. could it be possible that my little snitch firewall is blocking ? but when I install other modules it asks me if I want to allow the terminal to access the internet. I dont remember if it asked me when I tried to install strongloop... I have deleted my Node and npm installation and downloaded Node v0.10.36 and updated npm to the latest version (2.9.0) - now everything seems to work... could it be a problem with node v0.12.2 that was stopping me? will it be a problem if I use v0.10.36 instead of the latest node version?
...

Ankush Pandey

unread,
Jun 7, 2016, 6:54:25 PM6/7/16
to StrongLoop
I faced the same problem. Thanks for the tip. Apparently, npm version 2.7.4 was causing the problem. For all those still trying to figure this out, just update npm to the latest version (command "sudo npm install npm -g") and it will be fine.
Reply all
Reply to author
Forward
0 new messages