ReferenceError: primordials is not defined
at fs.js:36:5
at req_ (/ecosistema/sq/20230519/sq_pagos/node_modules/gulp/node_modules/vinyl-fs/node_modules/graceful-fs/node_modules/natives/index.js:137:5)
at Object.req [as require] (/ecosistema/sq/20230519/sq_pagos/node_modules/gulp/node_modules/vinyl-fs/node_modules/graceful-fs/node_modules/natives/index.js:54:10)
at Object. (/ecosistema/sq/20230519/sq_pagos/node_modules/gulp/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
npm ERR! code 1
npm ERR! path /ecosistema/sq/20230519/sq_pagos
npm ERR! command failed
npm ERR! command sh -c gulp
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-05-18T11_57_04_420Z-debug.log
Hola Emilio, el problema puede estar en la versión que tenes de npm, lo requerido para la instalación es:
node v4.5.0
npm v2.15.9
Te pregunte por si tenias académico o núcleo en el mismo server porque puede entrar en conflicto con la versión de npm que necesitan estos módulos para la ejecución de yarn.
Proba cambiar la versión de npm a 2.15.9 y luego instalar sq pagos.
Eso se arregló. Yo habia ejecutado el comando sin poner las variables de entorno.
Luego de dos o tres descargas e instalaciones me finaliza, pero en el medio queda este error
{ [Error: /ecosistema/sq/20230519/sq_pagos/app/src/scripts/app.js: SyntaxError: Unexpected token: name (datos)]
message: '/ecosistema/sq/20230519/sq_pagos/app/src/scripts/app.js: SyntaxError: Unexpected token: name (datos)',
fileName: '/ecosistema/sq/20230519/sq_pagos/app/src/scripts/app.js',
lineNumber: 906,
stack: 'Error\n at new JS_Parse_Error (eval at (/ecosistema/sq/20230519/sq_pagos/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), :1534:18)\n at js_error (eval at (/ecosistema/sq/20230519/sq_pagos/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), :1542:11)\n at croak (eval at (/ecosistema/sq/20230519/sq_pagos/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), :2089:9)\n at token_error (eval at (/ecosistema/sq/20230519/sq_pagos/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), :2097:9)\n at unexpected (eval at (/ecosistema/sq/20230519/sq_pagos/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), :2103:9)\n at semicolon (eval at (/ecosistema/sq/20230519/sq_pagos/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), :2123:56)\n at simple_statement (eval at (/ecosistema/sq/20230519/sq_pagos/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), :2314:73)\n at eval (eval at (/ecosistema/sq/20230519/sq_pagos/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), :2183:19)\n at eval (eval at (/ecosistema/sq/20230519/sq_pagos/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), :2136:24)\n at block_ (eval at (/ecosistema/sq/20230519/sq_pagos/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), :2429:20)',
showStack: false,
showProperties: true,
plugin: 'gulp-uglify' }
[19:57:33] Finished 'minify-js' after 528 ms