Error ELIFECYCLE when setting up the mobile app dev environment

Error ELIFECYCLE when setting up the mobile app dev environment

by Julio Jiménez -
Number of replies: 0

Hi everybody, sorry if this is not the correct forum for asking about the mobile app.

I've been trying to follow this guide for setting the development environment, but I'm stuck and I have no idea about how to proceed. When executing "npm run setup", the process fails aparently in the "npm install" part of the script, giving me an error code ELIFECYCLE.

I've searched for information about the error, and all I can find is executing "npm cache clean --force", deleting the folder "node_modules" and the file "package-locks.json" and then "npm install" again, but nothing worked.

Does anybody knows what the problem is? Thanks a lot!

The last part of the .log file is:

3753 verbose stack Error: node-sass@4.11.0 postinstall: `node scripts/build.js`
3753 verbose stack Exit status 1
3753 verbose stack     at EventEmitter.<anonymous> (/home/julio/.nvm/versions/node/v12.4.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
3753 verbose stack     at EventEmitter.emit (events.js:200:13)
3753 verbose stack     at ChildProcess.<anonymous> (/home/julio/.nvm/versions/node/v12.4.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
3753 verbose stack     at ChildProcess.emit (events.js:200:13)
3753 verbose stack     at maybeClose (internal/child_process.js:1021:16)
3753 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
3754 verbose pkgid node-sass@4.11.0
3755 verbose cwd /home/julio/Documentos/moodleApp
3756 verbose Linux 5.0.0-16-generic
3757 verbose argv "/home/julio/.nvm/versions/node/v12.4.0/bin/node" "/home/julio/.nvm/versions/node/v12.4.0/bin/npm" "install"
3758 verbose node v12.4.0
3759 verbose npm  v6.9.0
3760 error code ELIFECYCLE
3761 error errno 1
3762 error node-sass@4.11.0 postinstall: `node scripts/build.js`
3762 error Exit status 1
3763 error Failed at the node-sass@4.11.0 postinstall script.
3763 error This is probably not a problem with npm. There is likely additional logging output above.
3764 verbose exit [ 1, true ]


Average of ratings: -