mauron85 background-geolocation installation issues (react-native: command not found) - reactjs

hope you can help. I'm trying to install mauron85 react-native-background-geolocation and when i go to link the dependencies (react-native link react-native-mauron85-background-geolocation) i keep getting 'react-native: command not found'. i've installed npm, nodejs, react native (npm install -g react-native-cli), flow, watchman and the mauron85 package. i'm running this on ubuntu and have tried on mac and getting the same error message on both. I've also tried doing the manual setup for android and this hasn't worked because I don't have some of the node modules it needs, and have tried adding the right path to my path variable, which has made no difference. Is there anything obvious I'm missing that I've forgotten to install/has anyone had a similar message before?
Thanks!

Related

I get an error when trying to install strapi node v18

Image with ERROR!!!
When trying to install strapi with npx create-strapi-app#latest my-project
, an error appears. Everything used to work fine, now it doesn't want to install. In general, I can not solve the problem anywhere. Also tried reinstalling Python, node, sqlite3, gyp and nothing helped. Here is the error code ( it works with node v16 but i need 18 ;/ )
I'm on macbook m1 with node 18.12.1. I can do this without any issue.
I'm not 100% sure what is the problem but the error messages are saying that when it was trying to install the "better-sqlite3". It couldn't find the prebuilt package (warn install No prebuilt binaries found) that fit your system so the installer tried to build the package by itself (better-sqlite3#7.4.6 build-release) but turns out still you can't meet the requirement it needed (missing any Windows SDK).
Try to install Windows SDK on your computer. I think I would fix the issue.

Can't activate the expo manifest tools on Visual Studio Code

So I am currently trying to learn React and code on Visual Studio. Now, I am getting errors saying:
Oops, it looks like we couldn't activate the Expo manifest tools: Unable to perform cache refresh for C:\Users\Jasun\AppData\Local\Expo\schema-43.0.0.json: Error: certificate has expired.
Does anyone have any ideas?
Current versions are:
git version 2.34.1.windows.1
node version 17.2.0
expo version 5.0.0
Visual Studio Version 1.63.0
yarn version 1.22.17
reinstall doesn't help for now...
here is the workaround before they fix the issue - "Certificate has expired" when activating the Expo schema
You may try the workaround derived from the issue description
> expo init temp-proj --template expo-template-blank#44
> cd temp-proj
> expo doctor
Once expo doctor executed, the schema-44.0.0.json appear in %AppData%\Local\Expo\schema-44.0.0.json
then you can delete the temp-proj...
Warning: Problem validating app.json: Unable to perform cache refresh for ***C:\Users\Admin\AppData\Local\Expo***schema-44.0.0.json: Error: connect ETIMEDOUT 34.132.55.135:443.
Find schema-xx-x-x.json in C:\Users\Admin\AppData\Roaming\npm\node_modules\expo-cli\node_modules\xdl\caches
or search with everything app in your PC
Paste on C:\Users\Admin\AppData\Local\Expo\
Tadaaa Work
updating your expo cli will fix the issue
npm install -g expo-cli
then check the new version
expo --version
OR
use this link description
I had the same issue. The problem occurs because the file schema-43.0.0.json is missing from the directory.
I fixed it by copying one of the other schemas and renaming it to the missing one.

Install sharp without GitHub fetch for Nextjs: Error: Cannot find module 'sharp'

I'm trying to use Next.js on my corporate system, but whenever I run "npm run build", the build fails with the message: Error: Cannot find module 'sharp'
I tried installing sharp but I get this error:
info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.10.5/libvips-8.10.5-win32-x64.tar.br
ERR! sharp getaddrinfo ENOTFOUND github.com
info sharp Attempting to build from source via node-gyp but this may fail due to the above error
info sharp Please see https://sharp.pixelplumbing.com/install for required dependencies
This is probably because github URLs are blocked on my system's terminal due to security reasons. Is there a way to install sharp without fetching from github? I can access GitHub on the browser, so if downloading the file from there and then installing it somehow is possible I can do that.
OS: Windows 10
UPDATE: NextJS v10.0.8 fixes this issue! If you're running into the above error: upgrade to the 10.0.8 (or beyond).
The required sharp dependency introduced with NextJS 10.0.5 has broken builds that depend on the underlying libvips, which isn't there in various Linux distros. They're working on making the dependency optional. Relevant PR here and here. Related issue here. This may be easier than trying to get libvips installed or compiled on your machine (I simply couldn't get it to work on my Amazon EC2 ARM-based machine). You can downgrade to NextJS 10.0.3 in the meantime. I think they'll fix it soon.
I had the same error. It was happening to me because I have the Apple M1 Mac. I solved the error installing Homebrew, and after that, I had to install 'lipvips' using Brew install vips. Then, inside my project, npm install sharp, and finally, I run npm run build and it worked fine for me. I Hope It works for you!
I had the same problem on mac m1. I downgraded node version to 14 and now it works

AngularJS1.5 injector issue (MacOSX)

Hey all I'm getting this Error Message when trying to use 'gulp serve-dev' on my codebase (https://github.com/CraigOldfield/AngularJSWork). The steps to reproduce where as follows:
Clone the repo onto my machine (this machine already had node
installed and gulp (globally).
Run npm install and bower install
Run gulp serve-dev form the root directory
Previous command opened a browser and the console is reporting the injector issue, this very same code worked this morning on my work (windows) computer, I am now on my home (Mac) computer.
Im very new to Mac so it could be something related to that, I'm hoping someone can give me some more information to help debug this issue.
For those looking at this question with the same problem, what worked for me is the following comment by Yadejo.
Yadejo's comment "You should keep your versions of angular and angular-animate in sync. Take a look here: stackoverflow.com/a/32768153/3980911"
Once I updated my bower.json file to have the same version for each of these dependancies, I ran 'npm install' and 'bower install' which fixed the issues I described in the question above.

npm script error while trying to install react-router-dom

While working on my react project, I just tried to install react-router-dom and somehow it seems it erased all my scripts and modules. Now I cannot run the server again no matter what I do. I also cleaned working directories and even deleted the branch, but it still doesn't work at all..
and below is the error message when I hit 'npm start'.
Although I don't know why installing react-router-dom removed all my packages, I reinstalled node modules and now it works again. :)

Resources