nuxeo-cli execution error

Hi,

I have trial account in nuxeo connect, tried to install nuxeo-cli. after installation it shows 25 packages are looking for funding. on running nuxeo command i'm getting the error cannot find the module 'pad-left'.

Please guide to resolve the issue.

nandhan@anandhan-VirtualBox:~$ sudo npm install -g nuxeo-cli
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

removed 1519 packages, changed 507 packages, and audited 508 packages in 31s

25 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
anandhan@anandhan-VirtualBox:~$ nuxeo
node:internal/modules/cjs/loader:927
  throw err;
  ^

Error: Cannot find module 'pad-left'
Require stack:
- /usr/lib/node_modules/nuxeo-cli/node_modules/generator-nuxeo/lib/welcome.js
- /usr/lib/node_modules/nuxeo-cli/lib/cli.js
- /usr/lib/node_modules/nuxeo-cli/bin/nuxeo-cli.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15)
    at Function.Module._load (node:internal/modules/cjs/loader:769:27)
    at Module.require (node:internal/modules/cjs/loader:996:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/usr/lib/node_modules/nuxeo-cli/node_modules/generator-nuxeo/lib/welcome.js:2:13)
    at Module._compile (node:internal/modules/cjs/loader:1092:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
    at Module.load (node:internal/modules/cjs/loader:972:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:996:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/lib/node_modules/nuxeo-cli/node_modules/generator-nuxeo/lib/welcome.js',
    '/usr/lib/node_modules/nuxeo-cli/lib/cli.js',
    '/usr/lib/node_modules/nuxeo-cli/bin/nuxeo-cli.js'
}
0 votes

1 answers

93 views

ANSWER

Have you check your node version? It should be the latest LTS
03/18/2021

Node Version: v15.12.0
03/19/2021

Hi Gregory Carlin

I'm getting the below error while trying to run nuxeo sync.. please guide to resolve this issue.

anandhan@anandhan-VirtualBox:/opt/nuxeo-server-tomcat-2021.1/bin$ sudo nuxeo sync --src /home/anandhan/Downloads/demoproject-htc-anand-ht/studio/resources/nuxeo.war/ui/ --dest /opt/nuxeo-server-tomcat-2021.1/nxserver/nuxeo.war/ui/

(node:33709) Warning: Accessing non-existent property &apos;cat&apos; of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:33709) Warning: Accessing non-existent property &apos;cd&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;chmod&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;cp&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;dirs&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;pushd&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;popd&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;echo&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;tempdir&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;pwd&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;exec&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;ls&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;find&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;grep&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;head&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;ln&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;mkdir&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;rm&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;mv&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;sed&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;set&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;sort&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;tail&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;test&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;to&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;toEnd&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;touch&apos; of module exports inside circular dependency
(node:33709) Warning: Accessing non-existent property &apos;uniq&apos; of module exports inside circular dependency
✖ Run `/usr/bin/nuxeo synchronize configure` first.
03/20/2021



Hi Gregory Carlin

it's working after i removed and installed nuxeo-cli

now i'm getting error while running nuxeo sync,

posted detailed error message in the below conversation..

0 votes