jailkit - unable to install package

Discussion in 'General' started by Ruthwen, Sep 29, 2022.

  1. Ruthwen

    Ruthwen New Member

    Hi all.
    ISPConfig Version: 3.2.8p1
    jailkit: 2.23
    The node section:
    Code:
    [node]
    comment = NodeJS
    paths = npm, npx, node, nodejs, semver, /usr/lib/nodejs, /usr/share/nodejs, /usr/share/npm, /usr/share/node-mime, /usr/lib/node_modules, /usr/local/lib/nodejs, /usr/local/lib/node_modules, /etc/npmrc, /etc/npmignore, elmi-to-json, /usr/local/bin/elmi-to-json
    I'm trying to build new version of application:
    Code:
    ~/web$ npm run build
    
    > [email protected] build
    > next build
    
    Browserslist: caniuse-lite is outdated. Please run:
    npx [email protected] --update-db
    node:internal/errors:484
        ErrorCaptureStackTrace(err);
        ^
    
    Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/parser' is not defined by "exports" in /home/myuser/web/node_modules/next/node_modules/postcss/package.json
        at new NodeError (node:internal/errors:393:5)
        at throwExportsNotFound (node:internal/modules/esm/resolve:340:9)
        at packageExportsResolve (node:internal/modules/esm/resolve:619:3)
        at resolveExports (node:internal/modules/cjs/loader:492:36)
        at Module._findPath (node:internal/modules/cjs/loader:532:31)
        at Module._resolveFilename (node:internal/modules/cjs/loader:941:27)
        at Module._load (node:internal/modules/cjs/loader:803:27)
        at Module.require (node:internal/modules/cjs/loader:1021:19)
        at require (node:internal/modules/cjs/helpers:103:18)
        at 552 (/home/myuser/web/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:11590) {
      code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
    }
    
    Node.js v18.8.0
    caniuse-lite i outdated, so next:
    Code:
    web$ npx [email protected] --update-db
    Latest version:     1.0.30001412
    Installed version:  none
    Removing old caniuse-lite from lock file
    Installing new caniuse-lite version
    $ npm install caniuse-lite
    npm WARN old lockfile
    npm WARN old lockfile The package-lock.json file was created with an old version of npm,
    npm WARN old lockfile so supplemmental metadata must be fetched from the registry.
    npm WARN old lockfile
    npm WARN old lockfile This is a one-time fix-up, please be patient...
    npm WARN old lockfile
    npm ERR! Exit handler never called!
    
    npm ERR! This is an error with npm itself. Please report this error at:
    npm ERR!     <https://github.com/npm/cli/issues>
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/myuser/.npm/_logs/2022-09-28T22_09_32_361Z-debug-0.log
    
    Error: Command failed: npm install caniuse-lite
    npm WARN old lockfile
    npm WARN old lockfile The package-lock.json file was created with an old version of npm,
    npm WARN old lockfile so supplemmental metadata must be fetched from the registry.
    npm WARN old lockfile
    npm WARN old lockfile This is a one-time fix-up, please be patient...
    npm WARN old lockfile
    npm ERR! Exit handler never called!
    
    npm ERR! This is an error with npm itself. Please report this error at:
    npm ERR!     <https://github.com/npm/cli/issues>
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/myuser/.npm/_logs/2022-09-28T22_09_32_361Z-debug-0.log
    
        at checkExecSyncError (node:child_process:871:11)
        at Object.execSync (node:child_process:943:15)
        at updatePackageManually (/home/myuser/.npm/_npx/072487b38308305a/node_modules/update-browserslist-db/index.js:211:18)
        at updateDB (/home/myuser/.npm/_npx/072487b38308305a/node_modules/update-browserslist-db/index.js:276:5)
        at Object.<anonymous> (/home/myuser/.npm/_npx/072487b38308305a/node_modules/browserslist/cli.js:42:3)
        at Module._compile (node:internal/modules/cjs/loader:1119:14)
        at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
        at Module.load (node:internal/modules/cjs/loader:997:32)
        at Module._load (node:internal/modules/cjs/loader:838:12)
    
    Problem with `npm install caniuse-lite` call. Run it manually.
    
    Manually is exactly the same effect.
    Code:
    web$ npm install caniuse-lite
    npm WARN old lockfile
    npm WARN old lockfile The package-lock.json file was created with an old version of npm,
    npm WARN old lockfile so supplemmental metadata must be fetched from the registry.
    npm WARN old lockfile
    npm WARN old lockfile This is a one-time fix-up, please be patient...
    npm WARN old lockfile
    npm ERR! Exit handler never called!
    
    npm ERR! This is an error with npm itself. Please report this error at:
    npm ERR!     <https://github.com/npm/cli/issues>
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/myuser/.npm/_logs/2022-09-28T22_12_03_495Z-debug-0.log
    Please help :)
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    "npm ERR! This is an error with npm itself. Please report this error at:
    npm ERR! <https://github.com/npm/cli/issues>"

    seems clear to me ;)

    Also, the log in /home/myuser/.npm/_logs/2022-09-28T22_12_03_495Z-debug-0.log might give more info.
     

Share This Page