Comments (72)
You can skip npm install step by downloading the node_modules from here. And replace the node_modules folder inside JPMC-tech-task-2-PY3 with the one you downloaded from the link mentioned above.
Now you just need to execute npm start!
from jpmc-tech-task-2.
I got the answer to the issue..
Download node modules file from the comments above and then npm install react-scripts
by using this i am able to solve this
from jpmc-tech-task-2.
This option really worked for me. I don’t know exactly what the problem was but it was definitely not related with setting up path environments in my case.
from jpmc-tech-task-2.
You can skip npm install step by downloading the node_modules from here. And replace the node_modules folder inside JPMC-tech-task-2-PY3 with the one you downloaded from the link mentioned above.
Now you just need to execute npm start!
Thanks man, downloading the zip file worked for me... after doing a few extra steps. Apparently, if I try to copy the node_modules folder (from the .zip folder) into the JPMC-tech-task-2 folder it takes an eternity (literally, while copying it my computer said it would take more than a day then stopped at 10%). I just copied the zip folder, deleted the original node_modules folder, then moved the new node_modules folder (inside the zip file) into the JMPC-tech-task-2 directory.
However, for some reason it won't go through because it's complaining about react-scripts not being an internal or external command or whatever, so what I did was delete the original react-scripts folder in the new node_modules folder then installed react-scripts again (npm i react-scripts). This fixed the type error, but then it complained about not finding a require-from-string module. So I installed that in a similar fashion (npm install --save require-from-string), did npm install, and then npm start, and then it worked! I have been struggling on this for weeks and I'm glad I was finally able to fix it.
from jpmc-tech-task-2.
Make sure you are using the correct node version. Using nvm use v11.0.0
followed by sudo npm install
worked for me
from jpmc-tech-task-2.
For all the users, who have the error
Just go to visual studio 2017 and run VS 2017 terminal
Once you enter, move to the directory where you have saved JPMC-tech-task
Delete the folder node_modules
Being in the 2017 VS command prompt, run "npm install "
It will take around 153 MB download
And then run "npm start", it will work
from jpmc-tech-task-2.
did anyone find the solution to this? I have installed npm correctly , everything is right but this error wont stop showing Type error: Cannot find module '@jpmorganchase/perspective'. TS2307
from jpmc-tech-task-2.
Thanx a lot !!! Its working now.
from jpmc-tech-task-2.
You can skip npm install step by downloading the node_modules from https://drive.google.com/file/d/1amF7C-4mRZCi3Ab5xuH0XCRQubp4aa_t/view And replace the node_modules folder in JPMC-tech-task-2-PY3.
then run npm start
if it shows error for react-scripts then run this command npm i -g react-scripts
then runnpm start
that helped for me.
from jpmc-tech-task-2.
@lunakoj you're probably getting that error because npm install wasn't completing successfully on your end. Can you attach a screenshot of what errors you're getting on your console after you run npm install? The setup slides also discuss the workarounds for most issues a user might get when running npm install
from jpmc-tech-task-2.
from jpmc-tech-task-2.
I am actually getting the same error :(
from jpmc-tech-task-2.
Hi debarshikundu, did you find any solution for the problem since I have the same problem and can't resolve it.
from jpmc-tech-task-2.
nvm use v11.0.0 is not working for me
exit status 1: 'C:\Users\Yash' is not recognized as an internal or external command,
operable program or batch file.
can anyone tell me how to resolve this error
from jpmc-tech-task-2.
I have also ran into this error. Any ideas on the solution?
from jpmc-tech-task-2.
@TanishB I tried your method but its not working for me Can you tell me if i should uninstall anything more than the npm ? Earlier I followed the steps given in the instruction manual
from jpmc-tech-task-2.
@PrajolADSethi You don't need to uninstall anything. By replacing node_modules you are skipping the npm install step, that's it.
from jpmc-tech-task-2.
Okay Thank you @TanishB but still changing the node folder didn't work for me
from jpmc-tech-task-2.
i am facing the same issue! did anyone got the solution?
from jpmc-tech-task-2.
i am facing this same issue too
How to resolve it?
from jpmc-tech-task-2.
same issue please help
from jpmc-tech-task-2.
same issue, can't get a response from the online help!
from jpmc-tech-task-2.
Failed to compile
C:/Users/asus1/JPMC-tech-task-2/src/Graph.tsx
Type error: Cannot find module '@jpmorganchase/perspective'. TS2307
1 | import React, { Component } from 'react';
2 | import { Table } from '@jpmorganchase/perspective';
| ^
3 | import { ServerRespond } from './DataStreamer';
4 | import './Graph.css';
5 |
This error occurred during the build time and cannot be dismissed.
i am getting this error please tell me how can i resolve this error
from jpmc-tech-task-2.
same issue, can't get a response from the online help!
from jpmc-tech-task-2.
I don't know if this will help anyone, but I went to the node js site and downloaded it as if i was installing a basic application on my computer. Then i did the npm install and nmp start agaain.
from jpmc-tech-task-2.
I am also having the same issue.
C:/Users/../JPMC-tech-task-2-PY3/src/Graph.tsx
Type error: Cannot find module '@jpmorganchase/perspective'. TS2307
1 | import React, { Component } from 'react';
2 | import { Table } from '@jpmorganchase/perspective';
| ^
3 | import { ServerRespond } from './DataStreamer';
4 | import './Graph.css';
5 |
from jpmc-tech-task-2.
same issue, please help!
from jpmc-tech-task-2.
https://nodejs.org/en/download/
please try to download node js using the link above and see if it helps you. Then go through the process again as shown on the slides.
from jpmc-tech-task-2.
@TanishB rightly said. Try downloading the node_modules folder from here and replace it with the one in your Task 2 folder.
Now directly jump to npm start
from jpmc-tech-task-2.
Can we use visual studio 2019 ?
from jpmc-tech-task-2.
Your nvm version and this vs should match, so node_gyp error can be prevented.
So we can't use it.
If we use, node_gyp error might occur.
from jpmc-tech-task-2.
nvm use v11.0.0 is not working for me
exit status 1: 'C:\Users\Yash' is not recognized as an internal or external command,
operable program or batch file.can anyone tell me how to resolve this error
Hii try this --> cd/Users/ --> then run dir /x --> You will get something like YASH1 (In my case it was AMANSR1) --> then try again using the same eg. C:\Users\YASH~1 instead of C:\Users\YASH
from jpmc-tech-task-2.
I am facing error in command npm install --> can someone please help me!
from jpmc-tech-task-2.
https://drive.google.com/uc?id=1amF7C-4mRZCi3Ab5xuH0XCRQubp4aa_t&export=download
Download the zip file from the link.Extract it to JPMC-tech-task-2-PY3. Run 'npm start' in cmd.
No need to use 'npm install' in this case.
from jpmc-tech-task-2.
https://drive.google.com/uc?id=1amF7C-4mRZCi3Ab5xuH0XCRQubp4aa_t&export=download
Download the zip file from the link.Extract it to JPMC-tech-task-2-PY3. Run 'npm start' in cmd.
No need to use 'npm install' in this case.
Not sure if that's a good idea, at least for developing in a project that could be used in different devices.
npm install
installs the packages and pre-reqs for those packages depending on the machine you are using. Although you are able to solve it by pasting someone else's node_modules files, you shouldn't want to just paste it in your directory. That's a major security threat.
I was able to solve the problem with the following
npm install -g node-gyp node-pre-gyp
npm install --unsafe-perm
But this isn't the solution for all the people who posted their screens or their error messages. Some people are having permission issue and some are having issue with your npm not being able to find your python executable.
from jpmc-tech-task-2.
Using node_modules provided here, i tried npm start and now this is the error. I am trying to work on this since yesterday and there is always some error.
from jpmc-tech-task-2.
run npm start from the task folder and not the node modules folder. You might still get a dfferent error though
from jpmc-tech-task-2.
I did try that also, same error exist.
from jpmc-tech-task-2.
Delete node_modules and try again with setting VS terminal to 2017
Being in the 2017 VS command prompt, run "npm install "
It will take around 153 MB download
And then run "npm start", it will work
this error is mostly because of your python version linkage with Vs Version
from jpmc-tech-task-2.
Delete node_modules and try again with setting VS terminal to 2017
Being in the 2017 VS command prompt, run "npm install "
It will take around 153 MB download
And then run "npm start", it will work
this error is mostly because of your python version linkage with Vs Version
I tried and again there is problem!
from jpmc-tech-task-2.
I would like you to try out this
prebuild-install || node-gyp, try this command
and then check in the path directory whether the python path(where you have installed python) is included
Before set can be achieved by searching path in start menu and selecting edit the system env variables and select environment variables and select path in the second list box. Select the path and add the python.exe location
from jpmc-tech-task-2.
I would like you to try out this
prebuild-install || node-gyp, try this command
and then check in the path directory whether the python path(where you have installed python) is included
Before set can be achieved by searching path in start menu and selecting edit the system env variables and select environment variables and select path in the second list box. Select the path and add the python.exe location
Still not working
from jpmc-tech-task-2.
For all the users, who have the error
Just go to visual studio 2017 and run VS 2017 terminal
Once you enter, move to the directory where you have saved JPMC-tech-task
Delete the folder node_modules
Being in the 2017 VS command prompt, run "npm install "
It will take around 153 MB download
And then run "npm start", it will work
I worked for me. Thanks.
from jpmc-tech-task-2.
nvm use v11.0.0 is not working for me
exit status 1: 'C:\Users\Yash' is not recognized as an internal or external command,
operable program or batch file.can anyone tell me how to resolve this error
It is because of the space coming in your path.
from jpmc-tech-task-2.
You can skip npm install step by downloading the node_modules from here. And replace the node_modules folder inside JPMC-tech-task-2-PY3 with the one you downloaded from the link mentioned above.
Now you just need to execute npm start!
Actually just adding the @jpmorganchase folder to the node_modules will do the work. Thanks for it!
from jpmc-tech-task-2.
npm i --save @finos/perspective-viewer @finos/perspective-viewer-d3fc @finos/perspective-viewer-datagrid
from jpmc-tech-task-2.
Hello so some weeks back I was facing the same issues of react and have overcome it and would like to share with you all
Note :
1.Reclone the repository you are working on and delete the previous one
2. If using windows use the directory
C:/Users/public/<xyz_folder>/
3. Don't use space in your file name
4. Verify that you are using python version 2.7 or 3+ ; node version 6 ; nvm version 1.1.8 or a nearby one , npm version 11.0.0 and visual studios 2017
5. Make sure that while installing visual studios you clicked all options as guided in the ppt .
Now,
After these verifications let's first setup the server side :
1.Open CMD
2. change directory to where your repository is then make sure you are in the repository .
3 . Run the python3 datafeed/server3.py command
(If you get a dateutil error then either you write python3 as python itself and run still not working and you have pip installed already then install wheel package and then run )
After the port 8080 gets set now client side :
1.Open CMD (Administrator)
2. cd to desired location
3. check nvm version you installed
4. Follow the steps as in ppt
5. Use nvm 11.0.0
6.config...2017 command
7.npm start
Now if you are running into same type script errors
1 use the install command again
2. After a while it may show you steps to fix audits run that and again force audit steps
3. Run 5,6,7 step again still not working see if it is asking to install some packages like bootstrap and so
4. Again install fix audits and rerun this time it may get no compilation error and you might see the blue button on the local host page .
I hope this steps may help you as it worked in my case so All the best 👍
from jpmc-tech-task-2.
Using node_modules provided here, i tried npm start and now this is the error. I am trying to work on this since yesterday and there is always some error.
from jpmc-tech-task-2.
Using node_modules provided here, i tried npm start and now this is the error. I am trying to work on this since yesterday and there is always some error.
Hace you tried "npm start" instead of "react-scripts start"?, Don't really know if that would work, I was using it on windows. Or try using sudo
from jpmc-tech-task-2.
Failed to compile
C:/Users/buyre/JPMC-tech-task-3-PY3/src/Graph.tsx
Type error: Cannot find module '@jpmorganchase/perspective'. TS2307
1 | import React, { Component } from 'react';
2 | import { Table } from '@jpmorganchase/perspective';
| ^
3 | import { ServerRespond } from './DataStreamer';
4 | import { DataManipulator } from './DataManipulator';
5 | import './Graph.css';
This error occurred during the build time and cannot be dismissed.
from jpmc-tech-task-2.
@7Kushal Thanks.
It worked without any error.
from jpmc-tech-task-2.
You can skip npm install step by downloading the node_modules from here. And replace the node_modules folder inside JPMC-tech-task-2-PY3 with the one you downloaded from the link mentioned above.
Now you just need to execute npm start!
thanks this work for me
from jpmc-tech-task-2.
@jbf-insidesherpa I have made changes successfully and there are no errors but when i press START STREAM DATA I can' t see any graph displayed...
from jpmc-tech-task-2.
You can skip npm install step by downloading the node_modules from here. And replace the node_modules folder inside JPMC-tech-task-2-PY3 with the one you downloaded from the link mentioned above.
Now you just need to execute npm start!Actually just adding the @jpmorganchase folder to the node_modules will do the work. Thanks for it!
Sorry, I couldn't get it.
Can you explain what exactly you are asking?
from jpmc-tech-task-2.
I am not able to solve the npm start problem.
Can anyone help me.
I tried everything mentioned above, I also downloaded new module package and replaced it by the previous one
but still getting the same error.
from jpmc-tech-task-2.
Actually when you just delete the 'node_modules' folder and replace it with the new one which you can download at the link given above(as well as in troubleshooting of setup pdf ), you are leaving .json files which have cache from previous commands of npm.
You have to clear the cache or if you dont know the node commands , simply follow these steps:
- Delete the JPMC-tech-task-2-py3/JPMC-tech-task-2 folder from your C:/admin.
- Use git clone command again so you have fresh .json files
- Instead of npm install, copy the node_modules folder from the zip file you downloaded.(make sure its name is node_modules).
- Check if it has @jpmorganchase folder.
- If yes then start your server in an administrator cmd
- Run 'npm start' in a normal cmd in the JPMC-tech-task-2-py3/JPMC-tech-task-2 folder.
(Make sure you are in that folder when you run the scripts of server and start npm)
(This is how you hange directory: cd \Users<admin>\JPMC-tech-task-2-py3)
At type your own administrator name.
This steps gave me the proper output
from jpmc-tech-task-2.
I followed the steps you suggested but after doing that when I run npm start
I am getting error as
[email protected] start C:\Users\admin\JPMC-tech-task-2-PY3
react-scripts start
'react-scripts' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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\admin\AppData\Roaming\npm-cache_logs\2020-06-28T10_20_48_028Z-debug.log
what should I do now.
from jpmc-tech-task-2.
See my solution above @FutureHet
from jpmc-tech-task-2.
Okay I run the command npm install and when i check the folder named @jpmorganchase in the node_modules
so I just copy paste that folder from the node_modules folder which link was given by you.
Now it is working .
Thanks a lot.
@7Kushal and @srinath-nanduri
from jpmc-tech-task-2.
I solved this by removing package-lock.json,
then run npm install
then npm start works
from jpmc-tech-task-2.
You can skip npm install step by downloading the node_modules from here. And replace the node_modules folder inside JPMC-tech-task-2-PY3 with the one you downloaded from the link mentioned above.
Now you just need to execute npm start!
this works if the it shows react error asking to download dependencies.
from jpmc-tech-task-2.
Mine is WORKING and so I thought I will share the way I did it:
- When cloning from git, clone the 2.7 version. It will save you a lot of trouble down the way since a lot of nvm dependencies are with python 2.7
- Go to terminal and
cd
into the folder xcode-select --install
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
- copy the two lines from "export NVM_DIR" to "# This loads nvm"
check https://www.youtube.com/watch?v=Bhu7p7sHMaQ at 1:17 time for more information sudo vi ~/.bash_profile
- paste the two lines here
~/.bash_profile
nvm --version
It should show the versionnvm install v11.0.0
nvm use v11.0.0
- npm install
- npm start
THIS SHOULD WORK
HOPE IT HELPS
from jpmc-tech-task-2.
npm i --save @finos/perspective-viewer @finos/perspective-viewer-d3fc @finos/perspective-viewer-datagrid
Thanks this worked for me.
Those who are trying this just run this command in cmd and change the path from "@jpmorganchase/perspective" to "@finos/perspective" in the error line.
Hope It Helps.
from jpmc-tech-task-2.
Download the node_modules file from slide 92 and
The @jpmorgan file itself wasnt there in the nodes_module
So I copied that from the node files (downloaded from slide 92).
The error does'nt show anymore.
Try this.
from jpmc-tech-task-2.
Download the node_modules file from slide 92 and
The @jpmorgan file itself wasnt there in the nodes_module
So I copied that from the node files (downloaded from slide 92).
The error does'nt show anymore.
Try this.
Hi just FYI everytime you quote @jpmorgan you are sending a notification to me as a mention.. This "insidesherpa" github has done this many many times.
Just thought I'd let you know!
from jpmc-tech-task-2.
Actually when you just delete the 'node_modules' folder and replace it with the new one which you can download at the link given above(as well as in troubleshooting of setup pdf ), you are leaving .json files which have cache from previous commands of npm.
You have to clear the cache or if you dont know the node commands , simply follow these steps:
- Delete the JPMC-tech-task-2-py3/JPMC-tech-task-2 folder from your C:/admin.
- Use git clone command again so you have fresh .json files
- Instead of npm install, copy the node_modules folder from the zip file you downloaded.(make sure its name is node_modules).
- Check if it has @jpmorganchase folder.
- If yes then start your server in an administrator cmd
- Run 'npm start' in a normal cmd in the JPMC-tech-task-2-py3/JPMC-tech-task-2 folder.
(Make sure you are in that folder when you run the scripts of server and start npm)
(This is how you hange directory: cd \Users\JPMC-tech-task-2-py3)
At type your own administrator name.This steps gave me the proper output
I followed exact steps as you described. However, when I run my npm start it outputs the following:
from jpmc-tech-task-2.
I solved this by removing package-lock.json,
then run npm install
then npm start works
I tried your solution and when I input npm start it produces this:
from jpmc-tech-task-2.
Actually when you just delete the 'node_modules' folder and replace it with the new one which you can download at the link given above(as well as in troubleshooting of setup pdf ), you are leaving .json files which have cache from previous commands of npm.
You have to clear the cache or if you dont know the node commands , simply follow these steps:
- Delete the JPMC-tech-task-2-py3/JPMC-tech-task-2 folder from your C:/admin.
- Use git clone command again so you have fresh .json files
- Instead of npm install, copy the node_modules folder from the zip file you downloaded.(make sure its name is node_modules).
- Check if it has @jpmorganchase folder.
- If yes then start your server in an administrator cmd
- Run 'npm start' in a normal cmd in the JPMC-tech-task-2-py3/JPMC-tech-task-2 folder.
(Make sure you are in that folder when you run the scripts of server and start npm)
(This is how you hange directory: cd \Users\JPMC-tech-task-2-py3)
At type your own administrator name.This steps gave me the proper output
waoh! this is it. it works perfectly. thank you so much
from jpmc-tech-task-2.
You can skip npm install step by downloading the node_modules from https://drive.google.com/file/d/1amF7C-4mRZCi3Ab5xuH0XCRQubp4aa_t/view And replace the node_modules folder in JPMC-tech-task-2-PY3. then run
npm start
if it shows error for react-scripts then run this commandnpm i -g react-scripts
then runnpm start
that helped for me.
I still get an error that says 'react-scripts' is not recognized as an internal or external command,
operable program or batch file. any help??
from jpmc-tech-task-2.
I realised my nodes module folder was nested for some reason that fixed it
from jpmc-tech-task-2.
What worked for me to install react, react-dom and @finos/perspective properly without "Failed to Compile" showing up:
Enter all at once:
- npm install react react-dom @finos/perspective --save
- Go to the Graph.tsx file and replace
• import { Table } from '@jpmorganchase/perspective';
with
• import { Table } from '@finos/perspective';
from jpmc-tech-task-2.
You can skip npm install step by downloading the node_modules from https://drive.google.com/file/d/1amF7C-4mRZCi3Ab5xuH0XCRQubp4aa_t/view And replace the node_modules folder in JPMC-tech-task-2-PY3. then run
npm start
if it shows error for react-scripts then run this commandnpm i -g react-scripts
then runnpm start
that helped for me.I still get an error that says 'react-scripts' is not recognized as an internal or external command, operable program or batch file. any help??
Try installing latest version of react-scripts by running npm i react-scripts@latest
.
Follow these steps for react-scripts not recognized:
- Replace node modules in directory with this.
- Run cmd as administrator and run
npm i react-scripts@latest
in the directory. - Run
npm start
from jpmc-tech-task-2.
Related Issues (20)
- Failed to compile HOT 1
- Type error: Argument of type 'Row[]' is not assignable to parameter of type 'TableData'. : TS2345 HOT 1
- Cannot find module '@jpmorganchase/perspective'. TS2307 HOT 2
- Module not found: Can't resolve 'react HOT 1
- [email protected] install: `prebuild-install || node-gyp rebuild` && Node-gyp failed to build your package. HOT 1
- npm -v
- npm start issue
- regarding npm install
- Issue with entering command
- module generate_csv( )
- Stop Iteration Error
- NPM installation error HOT 2
- I have 78 vulnerabilities that need to be fixed and running npm audit fix (they need manual review) will not solve them. What should I do?
- npm start issue. found 12 high severity vulnerabilities run `npm audit fix` to fix them, or `npm audit` for details. But when i do audit fix it is asking us to manually solve them which i dont know. How to solve this error?
- NPM Installation. No prebuild binaries found $ global production windows installing is frozen HOT 1
- I'm getting this error in the first window within the Terminal: Traceback (most recent call last): File "datafeed/server3.py", line 26, in <module> import dateutil.parser ModuleNotFoundError: No module named 'dateutil'
- jp morgan task 2 software engiinnering virtual internship HOT 1
- Error installing npm on terminal
- I am having issue with cannot find module 'react-dom' or its corresponding type declarations
- Unsolvable Parsing error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jpmc-tech-task-2.