Download zip from github and run npm install in root - lightweight-charts

Any tips on how to resolve this? I am wanting to download the repo so I can make a modification.
When I open the unzipped folder in vscode and run npm install in the root I receive this error.
npm WARN deprecated tslint#6.1.3: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
> lightweight-charts#4.0.0 postinstall
> npm run install-hooks
> lightweight-charts#4.0.0 install-hooks
> node scripts/githooks/install.js
It seems that it isn't a git repo. Did you use git to clone the repo? Skip installing git-hooks
added 654 packages, and audited 655 packages in 26s
154 packages are looking for funding
run `npm fund` for details
5 high severity vulnerabilities
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.

You can ignore the error since you didn't clone the repo but instead downloaded it as a zip file. You will still be able to build the library.
I would recommend reading the BUILDING.md file if you are getting started with developing for the library.
The git hooks are only used when creating a new commit, at which stage it will run some checks to ensure that the code passes a few linter rules.

Related

create-react-app is no longer working in my computer anymore

create-react-app is no longer working on my computer
A template was not provided. This is likely because you're using an outdated version of create-react-app.
Please note that global installs of create-react-app are no longer supported.
You can fix this by running npm uninstall -g create-react-app or yarn global remove create-react-app before using create-react-app again
I obviously try the npm uninstall -g create-react-app command, but it didn't work.
I tried to update npx, npm, clear cache on npx, on npm, I tried installing the latest version of the create-react-app. nothing worked so far.
npm install create-react-app#latest
npm WARN deprecated tar#2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
added 51 packages, removed 6 packages, changed 12 packages, and audited 68 packages in 2s
4 packages are looking for funding
run `npm fund` for details
3 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
I tried uninstalling tar, the exact same message as before appears.
I solved it
the command npm install tar#6 -g
was what I needed to properly update tar and the error disapear.
Thanks to all who took the time to help me

I can not do "npm install" to my project in React. When I running "npm install" i get error massage

When I running "npm install" I get this Error message:
found 15369 vulnerabilities (15366 low, 3 high)
run `npm audit fix` to fix them, or `npm audit` for details
I tried to run "npm audit" and I get this error message:
found 15369 vulnerabilities (15366 low, 3 high) in 2153 scanned packages
run `npm audit fix` to fix 15366 of them.
3 vulnerabilities require manual review. See the full report for details.
I tried to run "npm audit fix --force"
and I get this error message:
fixed 15366 of 15369 vulnerabilities in 2153 scanned packages
3 vulnerabilities required manual review and could not be updated
I tried to delete my package-lock.json and delete node_modules folder,
and I Tried npm install again.
and I set this warning massage:
found 1 high severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
Maybe you will know where the problem is?
This is not an error. It's a warning message. Should not affect your project to run most of the cases.
Try doing
npm update
It might solve the issue,
Try referring the official documentation Auditing package dependency.
Also it won't be a problem to run your project successfully
Maybe you have some problem with the internet connection or some filtering on the internet data?
It's a warning message. Don't worry.
npm start
And your your project will start on localhost
Hi I was facing similar problem, this worked for me.
Remove any kind of lock file package-lock.json in the local repo.
Remove local node_modules folder
Remove global node_modules folder, this can be found at %USERPROFILE%\Application Data\npm\node_modules.
Try running npm i again
If the solution doesn't work with npm and use yarn and install the packages atleast for now.
Check the packages' dependencies in package.json and package-lock.json. Sometimes this can be from depending on different versions of the same node package. You can try npm update first to try to update as much as possible automatically. If that does not work, find the conflicted versions.

npm start is showing an issue with babel-eslint version

When i ran npm start command to start server for my react app created using npx create-react-app my-app, The following error is occuring.Please help me with the solution to clear the following bug.I have also tried all the steps mentioned below by it but the error was not cleared.
There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.
The react-scripts package provided by Create React App requires a dependency:
"babel-eslint": "10.1.0"
Don't try to install it manually: your package manager does it automatically.
However, a different version of babel-eslint was detected higher up in the tree:
C:\Users\LENOVO\node_modules\babel-eslint (version: 9.0.0)
Manually installing incompatible versions is known to cause hard-to-debug issues.
If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That will permanently disable this message but you might encounter other issues.
To fix the dependency tree, try following the steps below in the exact order:
1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
2. Delete node_modules in your project folder.
3. Remove "babel-eslint" from dependencies and/or devDependencies in the package.json file in your project folder.
4. Run npm install or yarn, depending on the package manager you use.
In most cases, this should be enough to fix the problem.
If this has not helped, there are a few other things you can try:
5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead.
This may help because npm has known issues with package hoisting which may get resolved in future versions.
6. Check if C:\Users\LENOVO\node_modules\babel-eslint is outside your project directory.
For example, you might have accidentally installed something in your home folder.
7. Try running npm ls babel-eslint in your project folder.
This will tell you which other package (apart from the expected react-scripts) installed babel-eslint.
If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That would permanently disable this preflight check in case you want to proceed anyway.
P.S. We know this message is long but please read the steps above :-) We hope you find them helpful!
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! reactapp#0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the reactapp#0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\LENOVO\AppData\Roaming\npm-cache\_logs\2020-07-19T12_53_40_050Z-debug.log
create your application outside the Desktop folder.
This is because of the package versions installed in user directory. The line from the error mentions the overriding version in the global user directory.
C:\Users\LENOVO\node_modules\babel-eslint (version: 9.0.0)
Try updating the version in the node_modules folder in the user directory or remove these and maintain local node_modules based on each project requirements.
I found a possible solution, or at least this one worked well for me. npm install #babel/eslint-parser and then npm start . If this doesnt work, first try this:
Delete babel-eslint in your node-modules or
Search where you could find that one with npm ls babel-eslint,
I hope works for you. :)

Why doesn't "npm start" work on brand new-crated react project?

I'm using
localhost:client davea$ npm -version
6.11.3
and following the advice here -- Issue with babel-jest dependency when running npm start in a React app , didn't do anything to help my situation. I want to start a completely blank project, so I tried
npx create-react-app client
cd client
However when I attempt to start things, I get this error
localhost:client davea$ npm start
> client#0.1.0 start /Users/davea/Documents/workspace/chicommons/maps/client
> react-scripts start
There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.
The react-scripts package provided by Create React App requires a dependency:
"babel-jest": "^24.9.0"
Don't try to install it manually: your package manager does it automatically.
However, a different version of babel-jest was detected higher up in the tree:
/Users/davea/Documents/workspace/node_modules/babel-jest (version: 22.4.1)
Manually installing incompatible versions is known to cause hard-to-debug issues.
If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That will permanently disable this message but you might encounter other issues.
To fix the dependency tree, try following the steps below in the exact order:
1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
2. Delete node_modules in your project folder.
3. Remove "babel-jest" from dependencies and/or devDependencies in the package.json file in your project folder.
4. Run npm install or yarn, depending on the package manager you use.
In most cases, this should be enough to fix the problem.
If this has not helped, there are a few other things you can try:
5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead.
This may help because npm has known issues with package hoisting which may get resolved in future versions.
6. Check if /Users/davea/Documents/workspace/node_modules/babel-jest is outside your project directory.
For example, you might have accidentally installed something in your home folder.
7. Try running npm ls babel-jest in your project folder.
This will tell you which other package (apart from the expected react-scripts) installed babel-jest.
If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That would permanently disable this preflight check in case you want to proceed anyway.
P.S. We know this message is long but please read the steps above :-) We hope you find them helpful!
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client#0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client#0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/davea/.npm/_logs/2020-02-11T19_49_36_594Z-debug.log
What else am I supposed to do to get this off the ground?
By default create-react-app uses Yarn. So I would suggest to use command yarn start for starting the application. And as you will be using Yarn you should have yarn.lock file. Make sure to delete package-lock.json file if exists.
Your last resort would be adding SKIP_PREFLIGHT_CHECK=true to an .env file in your project in the root directory.
My react js project doesn't have .env file, so I have created it and put (SKIP_PREFLIGHT_CHECK=true) in it.

NPX create-react-app aborting installation after vulnerabilities found

I have been trying to start learning React and JSX but I have been running into problems with using create-react-app. Every time I have used it eventually states that it is aborting installation and that npm install --save save-exact --loglevel error react react-dom react-scripts has failed. It also state before the installation aborts that there were a number of packages added and a certain number of vulnerabilities found. I have tried searching for other ways to create a React app from scratch and have followed these tutorials to only run into problems and have these fail as well.
Node Version 10.15.2 -- Same error occurred.
Reverted to Node Version 8.15.1 -- Same error still occurs.
NPM version 5.8.0 has not been changed.
npm cache clean --force
Has not changed receiving the error.
If someone could shed some light on what I might try next or what additional information might be helpful I would greatly appreciate it. Thank you. Here is what my screen looks like after trying npx create-react-app my-app
C:\Users\User\Desktop\Programming Courses\YouTube Tutorials\Learn React.js>npx c
reate-react-app my
'0' is not recognized as an internal or external command,
operable program or batch file.
Creating a new React app in C:\Users\User\Desktop\Programming Courses\YouTube Tu
torials\Learn React.js\my.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
'0' is not recognized as an internal or external command,
operable program or batch file.
+ react-dom#16.8.3
+ react#16.8.3
+ react-scripts#2.1.5
added 1813 packages from 716 contributors and audited 36230 packages in 77.867s
found 63 low severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts
has failed.
Deleting generated file... node_modules
Deleting generated file... package.json
Done.
C:\Users\User\Desktop\Programming Courses\YouTube Tutorials\Learn React.js>

Resources