Skip to content

Node2nix fails to install with nodejs-15 and nodejs-16 #236

@chaoflow

Description

@chaoflow

shell.nix

with import <nixpkgs> {};

let
    nodejs = nodejs-14_x;  # STILL WORKS
    # nodejs = nodejs-15_x;  # FAILS
    # nodejs = nodejs-16_x;  # FAILS
    nodePackages = pkgs.nodePackages.override {
      inherit nodejs;
    };

in

stdenv.mkDerivation rec {
  name = baseNameOf (builtins.getEnv "PWD");
  buildInputs = [
    nodejs
    nodePackages.node2nix
  ];
}

Failure for nodesjs-15 and nodejs-16 is identical.

nix-shell
...
rebuilt dependencies successfully
npm ERR! code ENOTCACHEDlTree buildDeps1ms
npm ERR! request to https://registry.npmjs.org/jsdoc failed: cache mode is 'only-if-cached' but no cached response available.

npm ERR! A complete log of this run can be found in:
npm ERR!     /build/.npm/_logs/2021-05-03T17_01_25_614Z-debug.log

builder for '/nix/store/ymrcv3axb8rfmvi1pk3yf03wbjgk505b-node_node2nix-1.9.0.drv' failed with exit code 1
error: build of '/nix/store/ymrcv3axb8rfmvi1pk3yf03wbjgk505b-node_node2nix-1.9.0.drv' failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions