Hi. I’m trying to build mattermost
webapp from source but keep running into the npm error code ENOTCACHED
. This happens even though I’m using a package-lock.json
file that includes the resolved
and integrity
fields.
Here is Nix my derivation:
{
lib,
buildNpmPackage,
fetchFromGitHub
}:
buildNpmPackage rec {
pname = "mattermost-webapp";
version = "9.11.5";
src = fetchFromGitHub {
owner = "mattermost";
repo = "mattermost";
rev = "v${version}";
hash = "sha256-bLZFeG6kBVP0ws50wtBam/bO206sQnz6va8PATAoRAQ=";
};
sourceRoot = "${src.name}/webapp";
patches = [./fix-package-lock-json.patch ];
dontNpmBuild = true;
makeCacheWritable = true;
forceGitDeps = true;
npmDepsHash = "sha256-ODlqjBZIrvZXtxtIG/CLISf2faAGG1bwFmgd0aUECOQ=";
Can you help me understand why this error is occurring and how I can resolve it?
Detailed error log: mattermost-npm.log · GitHub
fix-package-lock-json.patch
: fix-package-lock-json.patch · GitHub