evaseac / mobile-app

React native mobile application that aims to help rural communities to evaluate sub-aquatic systems
MIT License
0 stars 3 forks source link

Probable windows and Linux project developing/running compatibilty issue #29

Open edoomm opened 1 year ago

edoomm commented 1 year ago

Problematic description

While trying to run for the first time the project in a windows system (specifically in PowerShell) when doing:

npm i

Within the project folder (i.e.: EVASEAC/) the following error is prompted:

2307 error code 1
2308 error git dep preparation failed
2309 error command C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\lalom\AppData\Local\npm-cache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
2310 error > react-native-vector-icons@9.2.0 prepublish
2310 error > npm run build-web && npm run build-flow
2310 error
2310 error
2310 error > react-native-vector-icons@9.2.0 build-web
2310 error > rm -rf ./dist && babel *.js --out-dir ./dist && babel lib --out-dir ./dist/lib && cp -R ./glyphmaps ./dist/glyphmaps
2311 error npm WARN using --force Recommended protections disabled.
2311 error npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
2311 error npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
2311 error npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
2311 error npm WARN deprecated core-js-pure@3.6.5: core-js-pure@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js-pure.
2311 error npm WARN deprecated core-js@3.6.5: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
2311 error npm WARN using --force Recommended protections disabled.
2311 error npm WARN using --force Recommended protections disabled.
2311 error 'rm' is not recognized as an internal or external command,
2311 error operable program or batch file.
2311 error npm ERR! code 1
2311 error npm ERR! path C:\Users\lalom\AppData\Local\npm-cache\_cacache\tmp\git-cloneBZX4N8
2311 error npm ERR! command failed
2311 error npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c 

First I thought this was some incompatibilty between Unix-like shells and windows shells, but as for 4/15/23 I am not sure now.

Hot fix

A fix can be done using the following command:

npm install react-native-vector-icons@latest