Open junchih opened 6 months ago
Node package rollup failed to execute with Error: Cannot find module '@rollup/rollup-linux-x64-gnu'.
Just open a nix-shell, with only package nodePackages.rollup, and go with rollup --version.
rollup --version
Command execute successfully, and print version.
$ nixos-version 23.11.5150.03e303468a0b (Tapir) $ nix-shell -p nodePackages.rollup ... $ rollup --version node:internal/modules/cjs/loader:1137 throw err; ^ Error: Cannot find module '@rollup/rollup-linux-x64-gnu' Require stack: - /nix/store/qg16szai29d6j1v7n4vvqzhgm8gbszq7-rollup-4.3.0/lib/node_modules/rollup/dist/native.js - /nix/store/qg16szai29d6j1v7n4vvqzhgm8gbszq7-rollup-4.3.0/lib/node_modules/rollup/dist/shared/parseAst.js - /nix/store/qg16szai29d6j1v7n4vvqzhgm8gbszq7-rollup-4.3.0/lib/node_modules/rollup/dist/shared/rollup.js - /nix/store/qg16szai29d6j1v7n4vvqzhgm8gbszq7-rollup-4.3.0/lib/node_modules/rollup/dist/bin/rollup at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15) at Module._load (node:internal/modules/cjs/loader:975:27) at Module.require (node:internal/modules/cjs/loader:1225:19) at require (node:internal/modules/helpers:177:18) at Object.<anonymous> (/nix/store/qg16szai29d6j1v7n4vvqzhgm8gbszq7-rollup-4.3.0/lib/node_modules/rollup/dist/native.js:49:48) at Module._compile (node:internal/modules/cjs/loader:1356:14) at Module._extensions..js (node:internal/modules/cjs/loader:1414:10) at Module.load (node:internal/modules/cjs/loader:1197:32) at Module._load (node:internal/modules/cjs/loader:1013:12) at Module.require (node:internal/modules/cjs/loader:1225:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/nix/store/qg16szai29d6j1v7n4vvqzhgm8gbszq7-rollup-4.3.0/lib/node_modules/rollup/dist/native.js', '/nix/store/qg16szai29d6j1v7n4vvqzhgm8gbszq7-rollup-4.3.0/lib/node_modules/rollup/dist/shared/parseAst.js', '/nix/store/qg16szai29d6j1v7n4vvqzhgm8gbszq7-rollup-4.3.0/lib/node_modules/rollup/dist/shared/rollup.js', '/nix/store/qg16szai29d6j1v7n4vvqzhgm8gbszq7-rollup-4.3.0/lib/node_modules/rollup/dist/bin/rollup' ] } Node.js v18.19.1
$ nix-shell -p nix-info --run "nix-info -m" - system: `"x86_64-linux"` - host os: `Linux 6.1.80, NixOS, 23.11 (Tapir), 23.11.5150.03e303468a0b` - multi-user?: `yes` - sandbox: `yes` - version: `nix-env (Nix) 2.18.1` - channels(root): `"nixos-23.11-small"` - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
Add a :+1: reaction to issues you find important.
still broken in nixos 24.05
Please convert the package to use buildNpmPackage when fixing this.
Describe the bug
Node package rollup failed to execute with Error: Cannot find module '@rollup/rollup-linux-x64-gnu'.
Steps To Reproduce
Just open a nix-shell, with only package nodePackages.rollup, and go with
rollup --version
.Expected behavior
Command execute successfully, and print version.
Screenshots
Metadata
Add a :+1: reaction to issues you find important.