Unable to load schema from 'https://json.schemastore.org/package' - javascript

The package.json file keeps showing this error
I tried installing the packages again

Related

The directory - files that could conflict

I am new ro reactjs and so i am trying to learn my way through it. I have ran into a problem trying to create a new react project.. i have updated node and npm to the latest version but i keep getting the same error or rather message. Can anyone please help?
the following is the message i keep getting.
stelg#----MacBook ~ % npx create-react-app monsters-rolodex
The directory monsters-rolodex contains files that could conflict:
node_modules/
package-lock.json
package.json
public/
src/
Either try using a new directory name, or remove the files listed above.
new to reactjs at the moment

I am trying to deploy my express app to vercel but gives me error

Error: File /vercel/path1/node_modules/simple-update-notifier/node_modules/semver/preload.js does not exist.
The build logs :
Tried removing the node modules and lock file and then publishing. Also tried switching between npm and yarn
please check if you have semver inside your package.json

Problems with cloning a react app from github

I am pretty new to javascript and react, I want to use this github https://github.com/bennychen27/LoL-Stats-Tracker.
I use Visual Studio Code.
How I tried it?
Downloaded the App as zip
Unpacked it
I have seen that this project includes a proxyserver and a client
Then I have seen, that there are in my opinion files missing within the client folder, because how I have learned, the proxyserver and the App have to get started in two separat Terminals.
So I have opened the unpacked folder in my visual Studio
I used npm install in the main directory
I deleted the client folder
I created a new client folder by using: npx create-react-app client in the main directorty
9.Then I replaced the files in this client folder with the before deleted files of the before deleted client folder
I restartet my Visual Studio
I used npm install in the new client folder
Then I added the line "proxy": "http://localhost:4000", in the package.json file of the client, because the server runs on port 4000
Then I used npm start in the main diectory and the client folder
Then the proxyserver started without problems
And the client showed this error The react-scripts command is either misspelled or could not be found.
So I used npm install again to fix that.
Then I used npm start in the client folder
Then the error 'React' must be in scope when using JSX showed up
I added import React, { Component } from 'react'; in my app.js file
A new Error showed up Module not found: Can't resolve 'moment' in .... Failed to compile.
I used
npm install --save moment
npm install --save react-moment
npm install --save moment-timezone
after that in my client folder
After a new try to start this error showed up Module not found: Can't resolve 'react-select' in ...
I used npm i react-select to fix that
Now I am gettig errors over and over again, so I want to ask you if anyone could tell me, how I can set this up correctly, because how I already said, I am new to react.

Facing an error when deploying React app to github pages

I'm trying to deploy my react app to github pages but facing some errors.
At first, when I tried to run npm run deploy in the terminal, it showed me this error:
new MiniCssExtractPlugin({
^
And MiniCssExtractPlugin is not a constructor
After that, I tried: npm i -D --save-exact mini-css-extract-plugin#2.4.5
This solved the problem but when I ran it again (npm run deploy), I get this error:
Creating an optimized production build...
Failed to compile.
The target environment doesn't support dynamic import() syntax so it's not possible to use
external type 'module' within a script
I don't know why it doesn't work, and also didn't find anything on the internet.
Thanks!

react-native-db-models Uncaught error

I am wanting to use the react-native-db-models for local-db on my React Native iOS app.
I've npm installed react-native-db-models from here and have followed the instructions on the page of creating a db.js file that contains the example given on both Github page and NPM page. Then in the file that needs access to the DB, I've created vars for both DB and DBEvents, following the docs accordingly.
When running the project in Xcode it results in a Build Fail.
uncaught error Error: UnableToResolveError: Unable to resolve module
util from /Users/tmhn/Project/DoppioHealth/node_modules/react-native-db-models/node_modules/promise-es6/lib/utils.js:
Invalid directory /Users/node_modules/util
I have also npm installed the two dependencies listed on the npm page: es6-promises and eventemitter3, to no avail.
Note: DoppioHealth is the project name
Investigated the Github Issues and found this solved the issue

Categories