Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#56321 - [npm] Fails to install any package (core dumped) with nodejs 9.1

Attached to Project: Community Packages
Opened by Alex Fiestas (afiestas) - Tuesday, 14 November 2017, 09:04 GMT
Last edited by Felix Yan (felixonmars) - Thursday, 16 November 2017, 15:28 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When installing any package, npm will assert with the following message:
WARNING: You are likely using a version of node-tar or npm that is incompatible with this version of Node.js.
Please use either the version of npm that is bundled with Node.js, or a version of npm (> 5.5.1 or < 5.4.0) or node-tar (> 4.0.1) that is compatible with Node.js 9 and above.
/usr/bin/node[1935]: ../src/node_zlib.cc:437:static void node::{anonymous}::ZCtx::Init(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `args.Length() == 7 && "init(windowBits, level, memLevel, strategy, writeResult, writeCallback," " dictionary)"' failed.
1: node::Abort() [npm]
2: node::Assert(char const* const (*) [4]) [npm]
3: 0x55c5c96ba788 [npm]
4: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) [npm]
5: 0x55c5c8fa709f [npm]
6: 0x55c5c8fa75ef [npm]
7: 0x13ce23c842fd

Additional info:
* package version(s)
node: community-testing/nodejs 9.1.0-2
npm: 5.5.1-1

Steps to reproduce:
npm -i ionic
This task depends upon

Closed by  Felix Yan (felixonmars)
Thursday, 16 November 2017, 15:28 GMT
Reason for closing:  Fixed
Additional comments about closing:  5.5.1-2
Comment by Chih-Hsuan Yen (yan12125) - Tuesday, 14 November 2017, 10:28 GMT
Upstream bug => https://github.com/npm/npm/issues/19019

Some options
1) Install older node.js like community/nodejs-lts-argon, community/nodejs-lts-boron or aur/nodejs-lts-carbon
2) Downgrade to aur/npm53
2) Switch to community/yarn

Loading...