Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 662736 - net-libs/nodejs-8.11.3[npm,-ssl]: running npm results in Error: Node.js is not compiled with openssl crypto support
Summary: net-libs/nodejs-8.11.3[npm,-ssl]: running npm results in Error: Node.js is no...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-03 17:40 UTC by Alex Xu (Hello71)
Modified: 2018-08-16 07:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Xu (Hello71) 2018-08-03 17:40:18 UTC
looks like npm uses crypto rand everywhere, so probably easiest just to do REQUIRED_USE="npm? ( ssl )".
Comment 1 Gordon Bos 2018-08-07 13:27:11 UTC
Like to acknowledge this.

output returned:
~ # npm -v

┌───────────────────────────────────────────────────┐
│              npm update check failed              │
│        Try running with sudo or get access        │
│       to the local update config store via        │
│ sudo chown -R $USER:$(id -gn $USER) /root/.config │
└───────────────────────────────────────────────────┘
internal/util.js:77
    throw new Error('Node.js is not compiled with openssl crypto support');
    ^

Error: Node.js is not compiled with openssl crypto support
    at Object.assertCrypto (internal/util.js:77:11)
    at crypto.js:28:14
    at NativeModule.compile (bootstrap_node.js:597:7)
    at Function.NativeModule.require (bootstrap_node.js:542:18)
    at Function.Module._load (module.js:484:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/uuid/lib/rng.js:4:10)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/uuid/v1.js:1:73)


Should note that this problem is not restricted to nodejs version 8.11.3. It occurs with every version currently in the tree (i.e. >=0.12)
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2018-08-16 07:27:23 UTC
commit b4e9b226ab3e198ac5a6c223d6814e5155b271e8
Author: Jeroen Roovers <jer@gentoo.org>
Date:   Tue Aug 7 12:06:43 2018 +0200

    net-libs/nodejs: Set REQUIRED_USE for USE=npm (bug #662736).

    Package-Manager: Portage-2.3.44, Repoman-2.3.10