You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in my case, npm install is trying to write to the lockfile, but the lockfile is read-only
npm ERR! Error: EACCES: permission denied, open '/nix/store/iyz28s00n0dxyswxjz1bvmm9x8labjq2-node-dependencies-fs-agent-1.0.0/fs-agent/package-lock.json'
with npm ci the install fails with ENOTCACHED (#106#134)
npm ERR! request to https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz failed: cache mode is 'only-if-cached' but no cached response is available.
... fixed by updating node2nix
npm i -g https://github.com/svanderburg/node2nix
The text was updated successfully, but these errors were encountered:
npm ci is better for automated installs
for example, it treats the lockfile as read-only
npm ci
was added in npm 5.7.1npm ci
is also used in npmlock2nix (but they still usenpm install
in the second pass ...)node2nix/nix/node-env.nix
Line 470 in 315e1b8
example
in my case,
npm install
is trying to write to the lockfile, but the lockfile is read-onlywith
npm ci
the install fails withENOTCACHED
(#106 #134)... fixed by updating node2nix
The text was updated successfully, but these errors were encountered: