Guten Morgen Sathya,
npm install --unsafe-perm
führt zu folgendem länglichen Ergebnis:
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/tiny-lr-526aa7fa/src_test/client.js'
npm WARN tar ENOENT: no such file or directory, lstat '/var/lib/homegear/node-blue/node-red/node_modules/.staging/tiny-lr-526aa7fa/src_test/helpers'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/typedarray-to-buffer-fdfdeb4e/test/basic.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/touch-db476f91/bin/nodetouch.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/tiny-lr-526aa7fa/src_test/http.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/tiny-lr-526aa7fa/src_test/middleware.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/uc.micro-1bf575ce/properties/Any/regex.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/tiny-lr-526aa7fa/src_test/server.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/cli/node-flags.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/reporters/nyan.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/.DS_Store'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/cli/one-and-dones.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/cli/options.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/nodejs/parallel-buffered-runner.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/properties/properties-list.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/iltorb-5fe0e86c/brotli/c/enc/encode.c'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/tag/dictionary.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/properties/properties-table-html.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/doclet.js'
npm WARN tar ENOENT: no such file or directory, lstat '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/nodejs/reporters'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/properties/properties-table.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/node-gyp-76d6ff78/gyp/pylib/gyp/generator/ninja_test.py'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/properties/properties.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/node-gyp-76d6ff78/gyp/pylib/gyp/generator/ninja.py'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/util/doop.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/browser/parse-query.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/readOnly.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/handlebars-f24cd611/lib/handlebars/compiler/compiler.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/samsam-cbf7aacd/lib/create-matcher/is-iterable.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/util/dumper.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/pending.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/requires.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/env.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/plugin-loader.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/returns.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/samsam-cbf7aacd/lib/create-matcher/is-matcher.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/util/error.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/scope.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/browser/progress.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/see.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/plugins/escapeHtml.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/reporters/progress.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/shared/separator.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/plugins/test/specs/escapeHtml.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/interfaces/qunit.js'
npm WARN tar ENOENT: no such file or directory, lstat '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/shared/signature'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/plugins/eventDumper.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/src/filter.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/cli/run-helpers.js'
npm WARN tar ENOENT: no such file or directory, lstat '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/shared/signature'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/nise-5432fb5f/lib/fake-xhr/index.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/function.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/fs.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/cli/run-option-metadata.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/src/handlers.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/cli/run.js'
npm WARN tar ENOENT: no such file or directory, lstat '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/shared/signature'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/samsam-cbf7aacd/lib/create-matcher/match-object.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/lib/jsdoc/tag/inline.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/runnable.js'
npm WARN tar ENOENT: no such file or directory, lstat '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/shared/signature'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/index.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/jsdoc-8143c449/jsdoc.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/mocha-6a160ce3/lib/runner.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/since.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/index.test.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/summary.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/samsam-cbf7aacd/lib/create-matcher/matcher-prototype.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/map.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/this.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/object.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/throws.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/todo.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/dmd-7de02e11/partials/all-docs/docs/body/version.hbs'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/set.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/string.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/default-config.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/export-async-behaviors.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/extend.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/fake-timers.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/samsam-cbf7aacd/lib/samsam.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/samsam-cbf7aacd/lib/create-matcher/type-map.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/format.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/function-to-string.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/get-config.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/get-next-tick.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/@sinonjs/commons-af6d78f7/lib/prototypes/README.md'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/get-property-descriptor.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/is-es-module.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/is-non-existent-property.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/is-property-configurable.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/is-restorable.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/mock-expectation.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/mock.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/next-tick.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/proxy-call-util.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/proxy-call.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/proxy-invoke.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/proxy.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/restore-object.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/util/core/restore.js'
npm WARN tar ENOENT: no such file or directory, open '/var/lib/homegear/node-blue/node-red/node_modules/.staging/sinon-1f53d6ec/lib/sinon/sandbox.js'
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/node-red/jsdoc-nr-template.git /root/.npm/_cacache/tmp/git-clone-5c6d48f0/.git
npm ERR! fatal: Konnte führende Verzeichnisse von '/root/.npm/_cacache/tmp/git-clone-5c6d48f0/.git' nicht erstellen.
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-01-13T04_53_14_710Z-debug.log
Nach einem rm -R /root/.npm/
sind dann sowohl npm install --prod
als auch npm install --unsafe-perm
durchgelaufen.
Edit: npm install --prod
funktioniert nur nach einem vorherigen npm install --unsafe-perm
Ich hatte es gestern auch mal in einer sauberen VM mit Mint 20.1 probiert und hatte das gleiche Ergebnis. Es dürfte also eigentlich nicht an igendetwas liegen, was ich vorher auf dem Produktivserver mal installiert hatte bzw. habe.
Schöne Grüße
Alex