Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 660450 - net-libs/nodejs-10.6.0 npm doesn't run
Summary: net-libs/nodejs-10.6.0 npm doesn't run
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-05 14:51 UTC by Mike Lothian
Modified: 2018-07-23 10:49 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 Mike Lothian 2018-07-05 14:51:37 UTC
npm
/usr/lib64/node_modules/npm/lib/config/core.js:161
    }
    ^

SyntaxError: missing ) after argument list
    at new Script (vm.js:74:7)
    at createScript (vm.js:246:10)
    at Object.runInThisContext (vm.js:298:10)
    at Module._compile (internal/modules/cjs/loader.js:657:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)


Editing core.js and removing line 161 or 162 its a "}" gets it working again

Looks like a mistake in nodejs-10.3.0-global-npm-config.patch
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-07-23 10:49:17 UTC
Fixed in 10.6.0-r1 and 10.7.0-r1. Thanks for the report!