<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>60460</bug_id>
          
          <creation_ts>2026-09-08 12:42:14 +0300</creation_ts>
          <short_desc>Ошибка запуска из-за npm зависимостей</short_desc>
          <delta_ts>2026-09-08 12:47:31 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>meshcentral</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Блинов Денис Вячеславович">blinovdv</reporter>
          <assigned_to name="nash@altlinux.org">nash</assigned_to>
          <cc>nash</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>296911</commentid>
    <comment_count>0</comment_count>
    <who name="Блинов Денис Вячеславович">blinovdv</who>
    <bug_when>2026-09-08 12:42:14 +0300</bug_when>
    <thetext>Версия пакета: meshcentral-1.2.5-alt1.noarch

1) После установки пакета и попытки запуска $meshcentral или #meshcentral
Installing modules [
  &apos;ua-client-hints-js@0.1.2&apos;,
  &apos;@zip.js/zip.js@2.8.26&apos;,
  &apos;otplib@13.4.1&apos;
]
ERROR: Unable to install required modules. MeshCentral may not have access to npm, or npm may not have suffisent rights to load the new module. To manualy install this module try:

   cd &quot;/usr/lib&quot;
   npm install --no-audit --no-optional --omit=optional ua-client-hints-js@0.1.2 @zip.js/zip.js@2.8.26 otplib@13.4.1
   node node_modules/meshcentral

2) Если установить npm и выполнить #meshcentral или #cd &quot;/usr/lib&quot;
   npm install --no-audit --no-optional --omit=optional ua-client-hints-js@0.1.2 @zip.js/zip.js@2.8.26 otplib@13.4.1
   node node_modules/meshcentral
То удаляются все пакеты по пути /usr/lib/node_modules/meshcentral

3) Если установить npm и выполнить $meshcentral то результат аналогичный пункту 1

4) Если установить npm и выполнить $cd &quot;/usr/lib&quot;
   npm install --no-audit --no-optional --omit=optional ua-client-hints-js@0.1.2 @zip.js/zip.js@2.8.26 otplib@13.4.1
   node node_modules/meshcentral
То результат:
npm warn config optional Use `--omit=optional` to exclude optional dependencies, or
npm warn config `--include=optional` to include them.
npm warn config
npm warn config       Default value does install optional deps unless otherwise omitted.
npm error code EACCES
npm error syscall rename
npm error path /usr/lib/node_modules/meshcentral
npm error dest /usr/lib/node_modules/.meshcentral-f8Le5aLb
npm error errno -13
npm error Error: EACCES: permission denied, rename &apos;/usr/lib/node_modules/meshcentral&apos; -&gt; &apos;/usr/lib/node_modules/.meshcentral-f8Le5aLb&apos;
npm error     at async Object.rename (node:internal/fs/promises:784:10)
npm error     at async moveFile (/usr/lib/node_modules/npm/node_modules/@npmcli/fs/lib/move-file.js:30:5)
npm error     at async Promise.allSettled (index 0)
npm error     at async [reifyPackages] (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:334:11)
npm error     at async Arborist.reify (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:149:5)
npm error     at async Install.exec (/usr/lib/node_modules/npm/lib/commands/install.js:150:5)
npm error     at async Npm.exec (/usr/lib/node_modules/npm/lib/npm.js:207:9)
npm error     at async module.exports (/usr/lib/node_modules/npm/lib/cli/entry.js:74:5) {
npm error   errno: -13,
npm error   code: &apos;EACCES&apos;,
npm error   syscall: &apos;rename&apos;,
npm error   path: &apos;/usr/lib/node_modules/meshcentral&apos;,
npm error   dest: &apos;/usr/lib/node_modules/.meshcentral-f8Le5aLb&apos;
npm error }
npm error
npm error The operation was rejected by your operating system.
npm error It is likely you do not have the permissions to access this file as the current user
npm error
npm error If you believe this might be a permissions issue, please double-check the
npm error permissions of the file and its containing directories, or try running
npm error the command again as root/Administrator.
npm error A complete log of this run can be found in: /home/test/.npm/_logs/2026-09-08T08_07_57_328Z-debug-0.log
Installing modules [
  &apos;ua-client-hints-js@0.1.2&apos;,
  &apos;@zip.js/zip.js@2.8.26&apos;,
  &apos;otplib@13.4.1&apos;
]
ERROR: Unable to install required modules. MeshCentral may not have access to npm, or npm may not have suffisent rights to load the new module. To manualy install this module try:

   cd &quot;/usr/lib&quot;
   npm install --no-audit --no-optional --omit=optional ua-client-hints-js@0.1.2 @zip.js/zip.js@2.8.26 otplib@13.4.1
   node node_modules/meshcentral



По итогу:
После установки первый запуск программы приводит к попытке автоматически установить дополнительные модули через npm.
При запуске от обычного пользователя установка завершается ошибкой EACCES
При запуске от root операция переименования разрешается, но в таком случае npm изменяет содержимое /usr/lib/node_modules, и каталог meshcentral исчезает.

Примечание: на прошлой версии meshcentral-1.1.56-alt1.noarch запуск успешен.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296912</commentid>
    <comment_count>1</comment_count>
    <who name="Блинов Денис Вячеславович">blinovdv</who>
    <bug_when>2026-09-08 12:47:31 +0300</bug_when>
    <thetext>Прошлая версия (meshcentral-1.1.56-alt1.noarch) в сизиф вообще не требовала npm</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>