@Manel00 wrote:
Im starting on a Ionic 4 tutorial and I’m getting this big crash dont know why, i’m cleaning cache, removing /node_modules, installing npm --unsafe-perm… but cannot get rid from this error, thank you so much anyway
manel@XXX:~/Ionic4Tutorial/app$ sudo npm i > grpc@1.18.0 install /home/manel/Ionic4Tutorial/app/node_modules/grpc > node-pre-gyp install --fallback-to-build --library=static_library node-pre-gyp WARN Using request for node-pre-gyp https download [grpc] Success: "/home/manel/Ionic4Tutorial/app/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc/grpc_node.node" is installed via remote > node-sass@4.10.0 install /home/manel/Ionic4Tutorial/app/node_modules/node-sass > node scripts/install.js Unable to save binary /home/manel/Ionic4Tutorial/app/node_modules/node-sass/vendor/linux-x64-67 : { Error: EACCES: permission denied, mkdir '/home/manel/Ionic4Tutorial/app/node_modules/node-sass/vendor' at Object.mkdirSync (fs.js:774:3) at sync (/home/manel/Ionic4Tutorial/app/node_modules/mkdirp/index.js:71:13) at Function.sync (/home/manel/Ionic4Tutorial/app/node_modules/mkdirp/index.js:77:24) at checkAndDownloadBinary (/home/manel/Ionic4Tutorial/app/node_modules/node-sass/scripts/install.js:114:11) at Object.<anonymous> (/home/manel/Ionic4Tutorial/app/node_modules/node-sass/scripts/install.js:157:1) at Module._compile (internal/modules/cjs/loader.js:736:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:747:10) at Module.load (internal/modules/cjs/loader.js:628:32) at tryModuleLoad (internal/modules/cjs/loader.js:568:12) at Function.Module._load (internal/modules/cjs/loader.js:560:3) errno: -13, syscall: 'mkdir', code: 'EACCES', path: '/home/manel/Ionic4Tutorial/app/node_modules/node-sass/vendor' } > node-sass@4.10.0 postinstall /home/manel/Ionic4Tutorial/app/node_modules/node-sass > node scripts/build.js Building: /usr/local/bin/node /home/manel/Ionic4Tutorial/app/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= gyp info it worked if it ends with ok gyp verb cli [ '/usr/local/bin/node', gyp verb cli '/home/manel/Ionic4Tutorial/app/node_modules/node-gyp/bin/node-gyp.js', gyp verb cli 'rebuild', gyp verb cli '--verbose', gyp verb cli '--libsass_ext=', gyp verb cli '--libsass_cflags=', gyp verb cli '--libsass_ldflags=', gyp verb cli '--libsass_library=' ] gyp info using node-gyp@3.8.0 gyp info using node@11.8.0 | linux | x64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` succeeded python2 /usr/bin/python2 gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.14 gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j gyp verb get node dir no --target version specified, falling back to host node version: 11.8.0 gyp verb command install [ '11.8.0' ] gyp verb install input version string "11.8.0" gyp verb install installing version: 11.8.0 gyp verb install --ensure was passed, so won't reinstall if already installed gyp verb install version is already installed, need to check "installVersion" gyp verb got "installVersion" 9 gyp verb needs "installVersion" 9 gyp verb install version is good gyp verb get node dir target node version installed: 11.8.0 gyp verb build dir attempting to create "build" dir: /home/manel/Ionic4Tutorial/app/node_modules/node-sass/build gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/manel/Ionic4Tutorial/app/node_modules/node-sass/build' gyp ERR! System Linux 4.13.0-46-generic gyp ERR! command "/usr/local/bin/node" "/home/manel/Ionic4Tutorial/app/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /home/manel/Ionic4Tutorial/app/node_modules/node-sass gyp ERR! node -v v11.8.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.10.0 (node_modules/node-sass): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.10.0 postinstall: `node scripts/build.js` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 added 1246 packages from 1226 contributors and audited 51336 packages in 20.228s found 0 vulnerabilities
Posts: 1
Participants: 1