Open tanay-nagarsheth opened 4 years ago
So I encountered a similar problem and it was due to npm install
.
I am on ubuntu, and there is usually python 2.7 installed on many linux versions including ubuntu.
However my machine did not have python pre-installed and therefore running npm install
produced errors because it could not map to the python packages, and ultimately gave the same error as mentioned above on running npm start
. Notice if you are getting a similar error like so.
Just check if python is present in your machine or not by exceuting python --version
on your terminal. If python is not present, then better to install it using sudo apt-get install python
. After that if you again execute python --version` on your terminal, you'll see that python 2.x will be present.
One thing which I tried to do here is to install npm in a different python version by using
npm install --python=python3.8.10
, because python3 is present on my machine but it did not work.
Everything worked fine after I did this. If it still does not solve the problem then the above approaches might be of help :)
The first step is to run the server file,
second to check the correct nvm versions while using (as mentioned in the guide)
third, to execute npm install
without any errors.
whoever still stuck and couldnt find any solution, try this, it worked for me, hope it works for u... cd datafeed
once you are there do: npm install once u do that, do the following: npm install --ignore-scripts
Finally Run the main script:
npm start
This should work....
mainly for python3++
@akalam1 I am facing a similar issue with task 3. After installing the finos and all.I am facing an error with the DataManipulator imported. Did you encounter this?
What worked for me is entering this all at once: npm install react react-dom @finos/perspective --save Then: Go to the Graph.tsx file and replace import { Table } from '@jpmorganchase/perspective'; with import { Table } from '@finos/perspective';
Great! What worked for me was running npm install without nvm, I used the nodejs route and it worked!
What worked for me is entering this all at once: npm install react react-dom @finos/perspective --save Then: Go to the Graph.tsx file and replace import { Table } from '@jpmorganchase/perspective'; with import { Table } from '@finos/perspective';
Type error: Argument of type 'Row[]' is not assignable to parameter of type 'TableData'. Type 'Row[]' is not assignable to type 'Record<string, (string | number | boolean | Date)[]>[]'. Type 'Row' is not assignable to type 'Record<string, (string | number | boolean | Date)[]>'. Index signature is missing in type 'Row'. TS2345
52 | if (this.table) {
53 | this.table.update(
54 | DataManipulator.generateRow(this.props.data), | ^ 55 | ); 56 | } 57 | }
Getting this error which I'm not able to resolve. Can you help.
This is the exact problem I experienced. Install npm via the node js route not nvm. And do not replace @jpmorganchase perspective with @finos for task 3. Goodluck!
How to install npm via the node js route?
How to install npm via the node js route?
It says package-lock.json file was created with an old version of npm.
npm WARN old lockfile npm WARN old lockfile The package-lock.json file was created with an old version of npm, npm WARN old lockfile so supplemental metadata must be fetched from the registry. npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient... npm WARN old lockfile npm ERR! invalid options argument
Appears that jpmorganchase/perspective is missing
(copy link urls and paste in browser) replace existing with: https://drive.google.com/file/d/1amF7C-4mRZCi3Ab5xuH0XCRQubp4aa_t/view
Page 20 for more: https://cdn.theforage.com/vinternships/companyassets/Sj7temL583QAYpHXD/setup_devenv_m2_v8.pdf
what is the error sir, please help, this error has been breaking my head since a long time now