!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

206 Members
59 Servers

Load older messages


SenderMessageTime
15 Dec 2023
@avocadoom:avocadoom.deavocadoom joined the room.01:20:02
@avocadoom:avocadoom.deavocadoom

Hi, I currently try to package a Hugo site which uses BabelJS to transpile the JS to a more commonly compatible format. While having success with other Javascript frontend frameworks, I always get the following error while trying to build the site:

       last 10 log lines:
       > npm ERR! errno -1
       > npm ERR!
       > npm ERR! Your cache folder contains root-owned files, due to a bug in
       > npm ERR! previous versions of npm which has since been addressed.
       > npm ERR!
       > npm ERR! To permanently fix this problem, please run:
       > npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"
       >
       > npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
       > npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

Note, that this does not happen when building in a nix shell. This is how my current flake looks like.

{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
  inputs.npmlock2nix = {
    url = "github:nix-community/npmlock2nix";
    flake = false;
  };

  outputs = { self, nixpkgs, npmlock2nix }:
    let
      supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
      forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
        pkgs = import nixpkgs {
          inherit system;

          overlays = [
            (self: super: {
              nodejs = super.nodejs-18_x;
              pnpm = super.nodePackages.pnpm;
              npmlock2nix = super.callPackage npmlock2nix { };
            })
          ];
        };
      });
    in
    {
      devShells = forEachSupportedSystem ({ pkgs }: {
        default = pkgs.mkShell {
          packages = with pkgs; [
            nodejs-18_x
            hugo
            curl
            html-proofer
            just
            nodePackages."@babel/cli"
          ];
        };
      });
      packages = forEachSupportedSystem ({ pkgs }: {
        default = pkgs.stdenv.mkDerivation rec {
          __noChroot = true;
          name = "darmstadt.ccc.de";
          src = ./.;

          nativeBuildInputs = [
            pkgs.hugo
            pkgs.nodejs
          ];

          buildPhase = ''
              export HOME=./
              npm install
              npm run build
          '';

          installPhase = ''
            mkdir -p $out/bin
            cp -r $src/downloads $out/
          '';
        };
      });
    };
}

Dont be bothered by some imports, they are just the result of some tests. The sources can be found here: https://git.darmstadt.ccc.de/cda/chaos-darmstadt.de/-/tree/nix-flakes

I really hop to find some suggestions here since I spent the whole evening googling for similar problems without success.

thx in advance :)

01:36:33
@avocadoom:avocadoom.deavocadoomFrom watching the build output, this problem occurs when executing the hugo build. This occurs installing the npm modules inside the buildscript as well as using npmlock2nix or buildNpmModule01:37:35
@lily:lily.flowersLily Foster
In reply to @avocadoom:avocadoom.de

Hi, I currently try to package a Hugo site which uses BabelJS to transpile the JS to a more commonly compatible format. While having success with other Javascript frontend frameworks, I always get the following error while trying to build the site:

       last 10 log lines:
       > npm ERR! errno -1
       > npm ERR!
       > npm ERR! Your cache folder contains root-owned files, due to a bug in
       > npm ERR! previous versions of npm which has since been addressed.
       > npm ERR!
       > npm ERR! To permanently fix this problem, please run:
       > npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"
       >
       > npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
       > npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

Note, that this does not happen when building in a nix shell. This is how my current flake looks like.

{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
  inputs.npmlock2nix = {
    url = "github:nix-community/npmlock2nix";
    flake = false;
  };

  outputs = { self, nixpkgs, npmlock2nix }:
    let
      supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
      forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
        pkgs = import nixpkgs {
          inherit system;

          overlays = [
            (self: super: {
              nodejs = super.nodejs-18_x;
              pnpm = super.nodePackages.pnpm;
              npmlock2nix = super.callPackage npmlock2nix { };
            })
          ];
        };
      });
    in
    {
      devShells = forEachSupportedSystem ({ pkgs }: {
        default = pkgs.mkShell {
          packages = with pkgs; [
            nodejs-18_x
            hugo
            curl
            html-proofer
            just
            nodePackages."@babel/cli"
          ];
        };
      });
      packages = forEachSupportedSystem ({ pkgs }: {
        default = pkgs.stdenv.mkDerivation rec {
          __noChroot = true;
          name = "darmstadt.ccc.de";
          src = ./.;

          nativeBuildInputs = [
            pkgs.hugo
            pkgs.nodejs
          ];

          buildPhase = ''
              export HOME=./
              npm install
              npm run build
          '';

          installPhase = ''
            mkdir -p $out/bin
            cp -r $src/downloads $out/
          '';
        };
      });
    };
}

Dont be bothered by some imports, they are just the result of some tests. The sources can be found here: https://git.darmstadt.ccc.de/cda/chaos-darmstadt.de/-/tree/nix-flakes

I really hop to find some suggestions here since I spent the whole evening googling for similar problems without success.

thx in advance :)

that error isn't the real one. that is just npm trying to log the errors above it and failing to. can you share the whole build log?
01:39:12
@avocadoom:avocadoom.deavocadoomRedacted or Malformed Event01:40:21
@lily:lily.flowersLily Foster
In reply to @avocadoom:avocadoom.de

Hi, I currently try to package a Hugo site which uses BabelJS to transpile the JS to a more commonly compatible format. While having success with other Javascript frontend frameworks, I always get the following error while trying to build the site:

       last 10 log lines:
       > npm ERR! errno -1
       > npm ERR!
       > npm ERR! Your cache folder contains root-owned files, due to a bug in
       > npm ERR! previous versions of npm which has since been addressed.
       > npm ERR!
       > npm ERR! To permanently fix this problem, please run:
       > npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"
       >
       > npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
       > npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

Note, that this does not happen when building in a nix shell. This is how my current flake looks like.

{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
  inputs.npmlock2nix = {
    url = "github:nix-community/npmlock2nix";
    flake = false;
  };

  outputs = { self, nixpkgs, npmlock2nix }:
    let
      supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
      forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
        pkgs = import nixpkgs {
          inherit system;

          overlays = [
            (self: super: {
              nodejs = super.nodejs-18_x;
              pnpm = super.nodePackages.pnpm;
              npmlock2nix = super.callPackage npmlock2nix { };
            })
          ];
        };
      });
    in
    {
      devShells = forEachSupportedSystem ({ pkgs }: {
        default = pkgs.mkShell {
          packages = with pkgs; [
            nodejs-18_x
            hugo
            curl
            html-proofer
            just
            nodePackages."@babel/cli"
          ];
        };
      });
      packages = forEachSupportedSystem ({ pkgs }: {
        default = pkgs.stdenv.mkDerivation rec {
          __noChroot = true;
          name = "darmstadt.ccc.de";
          src = ./.;

          nativeBuildInputs = [
            pkgs.hugo
            pkgs.nodejs
          ];

          buildPhase = ''
              export HOME=./
              npm install
              npm run build
          '';

          installPhase = ''
            mkdir -p $out/bin
            cp -r $src/downloads $out/
          '';
        };
      });
    };
}

Dont be bothered by some imports, they are just the result of some tests. The sources can be found here: https://git.darmstadt.ccc.de/cda/chaos-darmstadt.de/-/tree/nix-flakes

I really hop to find some suggestions here since I spent the whole evening googling for similar problems without success.

thx in advance :)

oh wait you're not using an npm builder that'll take care of setting up npm enough that running npm install could actually work... hmm...
01:40:21
@avocadoom:avocadoom.deavocadoom
In reply to @lily:lily.flowers
oh wait you're not using an npm builder that'll take care of setting up npm enough that running npm install could actually work... hmm...
as stated, I already tried that, which resulted in the same behavior
01:40:53
@avocadoom:avocadoom.deavocadoom
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/0rb9qgdsbkafx4s59jsa5lxhkhr5fsvv-darmstadt.ccc.de.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/g5n23k8ahzdfgw7s8l40iqmvy21li8cr-kndykrdjyqs5jn478q753lcncfvv2l4z-source
source root is kndykrdjyqs5jn478q753lcncfvv2l4z-source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building

added 195 packages, and audited 196 packages in 2s

12 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 9.5.1 -> 10.2.5
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.5
npm notice Run npm install -g npm@10.2.5 to update!
npm notice

> build
> hugo

WARN  config: languages.de.disabled: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.de.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
Start building sites …
hugo v0.115.0+extended linux/amd64 BuildDate=unknown VendorInfo=nixpkgs

ERROR render of "page" failed: "/tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/layouts/_default/baseof.html:14:28": execute of template failed: template: _default/single.html:14:28: executing "_default/single.html" at <partial "scripts.html" .>: error calling partial: "/tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/layouts/partials/scripts.html:4:10": execute of template failed: template: partials/scripts.html:4:10: executing "partials/scripts.html" at <$main.Content>: error calling Content: BABEL: failed to transform "js/main.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/main.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-2696888417.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/critical.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/critical.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-9938092.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/calendar.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/calendar.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-45920551.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/main.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/main.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-2696888417.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
Total in 1817 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/layouts/_default/baseof.html:13:8": execute of template failed: template: posts/single.html:13:8: executing "posts/single.html" at <partial "header.html" .>: error calling partial: "/tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/layouts/partials/header.html:43:20": execute of template failed: template: partials/header.html:43:20: executing "partials/header.html" at <$criticalScript.Content>: error calling Content: BABEL: failed to transform "js/critical.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/critical.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-9938092.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
01:40:59
@avocadoom:avocadoom.deavocadoom
In reply to @avocadoom:avocadoom.de
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/0rb9qgdsbkafx4s59jsa5lxhkhr5fsvv-darmstadt.ccc.de.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/g5n23k8ahzdfgw7s8l40iqmvy21li8cr-kndykrdjyqs5jn478q753lcncfvv2l4z-source
source root is kndykrdjyqs5jn478q753lcncfvv2l4z-source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building

added 195 packages, and audited 196 packages in 2s

12 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 9.5.1 -> 10.2.5
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.5
npm notice Run npm install -g npm@10.2.5 to update!
npm notice

> build
> hugo

WARN  config: languages.de.disabled: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.de.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
Start building sites …
hugo v0.115.0+extended linux/amd64 BuildDate=unknown VendorInfo=nixpkgs

ERROR render of "page" failed: "/tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/layouts/_default/baseof.html:14:28": execute of template failed: template: _default/single.html:14:28: executing "_default/single.html" at <partial "scripts.html" .>: error calling partial: "/tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/layouts/partials/scripts.html:4:10": execute of template failed: template: partials/scripts.html:4:10: executing "partials/scripts.html" at <$main.Content>: error calling Content: BABEL: failed to transform "js/main.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/main.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-2696888417.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/critical.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/critical.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-9938092.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/calendar.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/calendar.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-45920551.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/main.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/main.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-2696888417.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
Total in 1817 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/layouts/_default/baseof.html:13:8": execute of template failed: template: posts/single.html:13:8: executing "posts/single.html" at <partial "header.html" .>: error calling partial: "/tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/layouts/partials/header.html:43:20": execute of template failed: template: partials/header.html:43:20: executing "partials/header.html" at <$criticalScript.Content>: error calling Content: BABEL: failed to transform "js/critical.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/kndykrdjyqs5jn478q753lcncfvv2l4z-source/babel.config.js --filename=js/critical.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-9938092.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
Lily Foster: this is the whole build log
01:41:16
@lily:lily.flowersLily Foster
In reply to @avocadoom:avocadoom.de
as stated, I already tried that, which resulted in the same behavior
apologies, i saw you stated that and was commenting on that specifically
01:41:33
@avocadoom:avocadoom.deavocadoom
In reply to @lily:lily.flowers
apologies, i saw you stated that and was commenting on that specifically
no problem :)
01:42:09
@avocadoom:avocadoom.deavocadoomFrom reading them, I guess hugo just cant find babel, which is weird, since it works in a nix shell following the exact same steps as in the build process01:45:15
@avocadoom:avocadoom.deavocadoom * From reading the logs, I guess hugo just cant find babel, which is weird, since it works in a nix shell following the exact same steps as in the build process01:45:28
@lily:lily.flowersLily Foster
In reply to @avocadoom:avocadoom.de
From reading the logs, I guess hugo just cant find babel, which is weird, since it works in a nix shell following the exact same steps as in the build process
i'm gonna make a wild guess that babel is trying to write to your home dir. what if you add a export HOME="$TMPDIR"?
01:51:31
@lily:lily.flowersLily Fosteroh actually. it's trying to run npx01:52:51
@lily:lily.flowersLily Fosterbut can't01:53:03
@lily:lily.flowersLily Fostermaybe?01:53:06
@avocadoom:avocadoom.deavocadoom
In reply to @lily:lily.flowers
i'm gonna make a wild guess that babel is trying to write to your home dir. what if you add a export HOME="$TMPDIR"?
this doesn't seem to work
01:53:26
@avocadoom:avocadoom.deavocadoom
In reply to @lily:lily.flowers
maybe?
maybe
01:53:33
@avocadoom:avocadoom.deavocadoombut this seems a bit counterintuitive regarding the docs stating to have the modules installed locally01:53:56
@joepie91:pixie.town@joepie91:pixie.townbabel does indeed try to write into a cache in your homedir01:54:50
@joepie91:pixie.town@joepie91:pixie.townsetting the homedir to an invalid path makes it not do that01:54:59
@lily:lily.flowersLily Foster
In reply to @avocadoom:avocadoom.de
but this seems a bit counterintuitive regarding the docs stating to have the modules installed locally
Which docs and which modules? (sorry, i am a bit tired and probably not following well)
01:55:15
@avocadoom:avocadoom.deavocadoom
In reply to @lily:lily.flowers
Which docs and which modules? (sorry, i am a bit tired and probably not following well)
sorry, my fault. This page in the hugo docs: https://gohugo.io/hugo-pipes/babel/
01:55:37
@avocadoom:avocadoom.deavocadoom
In reply to @joepie91:pixie.town
setting the homedir to an invalid path makes it not do that
thx, I'll try that :)
01:55:50
@avocadoom:avocadoom.deavocadoom
In reply to @avocadoom:avocadoom.de
thx, I'll try that :)

setting HOME to an invalid path after installing the modules does not help either

warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/rqrxmifc2r5d5l6s6cgr2m9lf4gzrrq1-darmstadt.ccc.de.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/4gbvafjs35absnkcimmgkklv7p5gfhvn-vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source
source root is vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building

added 195 packages, and audited 196 packages in 2s

12 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 9.5.1 -> 10.2.5
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.5
npm notice Run npm install -g npm@10.2.5 to update!
npm notice

> build
> hugo

WARN  config: languages.de.disabled: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.de.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
Start building sites …
hugo v0.115.0+extended linux/amd64 BuildDate=unknown VendorInfo=nixpkgs

npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /asdasd
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/asdasd'
npm ERR!  [Error: EACCES: permission denied, mkdir '/asdasd'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/asdasd'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! Log files were not written due to an error writing to the directory: /asdasd/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR render of "page" failed: "/tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/layouts/_default/baseof.html:14:28": execute of template failed: template: _default/single.html:14:28: executing "_default/single.html" at <partial "scripts.html" .>: error calling partial: "/tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/layouts/partials/scripts.html:4:10": execute of template failed: template: partials/scripts.html:4:10: executing "partials/scripts.html" at <$main.Content>: error calling Content: BABEL: failed to transform "js/main.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/babel.config.js --filename=js/main.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-150384115.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/critical.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/babel.config.js --filename=js/critical.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-2896809591.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/calendar.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/babel.config.js --filename=js/calendar.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-485315495.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/main.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/babel.config.js --filename=js/main.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-150384115.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
Total in 1875 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/layouts/_default/baseof.html:13:8": execute of template failed: template: posts/single.html:13:8: executing "posts/single.html" at <partial "header.html" .>: error calling partial: "/tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/layouts/partials/header.html:43:20": execute of template failed: template: partials/header.html:43:20: executing "partials/header.html" at <$criticalScript.Content>: error calling Content: BABEL: failed to transform "js/critical.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/babel.config.js --filename=js/critical.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-2896809591.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
01:57:40
@avocadoom:avocadoom.deavocadoom
In reply to @avocadoom:avocadoom.de

setting HOME to an invalid path after installing the modules does not help either

warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/rqrxmifc2r5d5l6s6cgr2m9lf4gzrrq1-darmstadt.ccc.de.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/4gbvafjs35absnkcimmgkklv7p5gfhvn-vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source
source root is vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building

added 195 packages, and audited 196 packages in 2s

12 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 9.5.1 -> 10.2.5
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.5
npm notice Run npm install -g npm@10.2.5 to update!
npm notice

> build
> hugo

WARN  config: languages.de.disabled: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.de.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
Start building sites …
hugo v0.115.0+extended linux/amd64 BuildDate=unknown VendorInfo=nixpkgs

npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /asdasd
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/asdasd'
npm ERR!  [Error: EACCES: permission denied, mkdir '/asdasd'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/asdasd'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! Log files were not written due to an error writing to the directory: /asdasd/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR render of "page" failed: "/tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/layouts/_default/baseof.html:14:28": execute of template failed: template: _default/single.html:14:28: executing "_default/single.html" at <partial "scripts.html" .>: error calling partial: "/tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/layouts/partials/scripts.html:4:10": execute of template failed: template: partials/scripts.html:4:10: executing "partials/scripts.html" at <$main.Content>: error calling Content: BABEL: failed to transform "js/main.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/babel.config.js --filename=js/main.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-150384115.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/critical.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/babel.config.js --filename=js/critical.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-2896809591.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/calendar.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/babel.config.js --filename=js/calendar.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-485315495.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR BABEL: failed to transform "js/main.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/babel.config.js --filename=js/main.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-150384115.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
Total in 1875 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/layouts/_default/baseof.html:13:8": execute of template failed: template: posts/single.html:13:8: executing "posts/single.html" at <partial "header.html" .>: error calling partial: "/tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/layouts/partials/header.html:43:20": execute of template failed: template: partials/header.html:43:20: executing "partials/header.html" at <$criticalScript.Content>: error calling Content: BABEL: failed to transform "js/critical.js" (text/javascript): npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
: failed to execute binary "npx" with args [--no-install babel --config-file /tmp/nix-build-darmstadt.ccc.de.drv-0/vqwvrdgzjbr47dq6pqrzpm812qv7zqms-source/babel.config.js --filename=js/critical.js --out-file=/tmp/nix-build-darmstadt.ccc.de.drv-0/compileOut-2896809591.js]: npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path /var/empty/.npm
npm ERR! errno -1
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 30001:30000 "/var/empty/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /var/empty/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
          buildPhase = ''
              export HOME=./
              npm install
              export HOME=/asdasd
              npm run build
          '';
01:57:55
@joepie91:pixie.town@joepie91:pixie.townthat's odd, that's an error coming from npm01:58:47
@joepie91:pixie.town@joepie91:pixie.townthat probably isn't babel causing it?01:59:18
@joepie91:pixie.town@joepie91:pixie.townI'm not sure01:59:28

Show newer messages


Back to Room ListRoom Version: 6