When I am running yarn test:watch, I am getting this error.
Cannot find module 'babel-runtime/helpers/toConsumableArray' from 'node_modules/pandas-js/dist/core/series.js'
Require stack:
node_modules/pandas-js/dist/core/series.js
node_modules/pandas-js/dist/core/index.js
node_modules/pandas-js/dist/index.js
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:306:11)
at Object.<anonymous> (node_modules/pandas-js/dist/core/series.js:8:27)
I tired
npm install --save-exact #babel/runtime#7.0.0-beta.55
and then deleted node-modules folder and package-lock.json file and tried npm install again
That did not solve the issue too. Can anyone help me in this please.
This is the version of pandas-js library
"pandas-js": "^0.2.4",
in my package.json
it works after I installed babel-cli, a lot of people have said this works for them #babel/runtime#7.0.0-beta.55, but for me babel-cli helped.
you can try simply deleting the node-modules folder from your project directory, and run npm install command can also use yarn to re-install the dependencies in your project
Related
I did an npx create-react-app then I did an npm start to see if it worked, and when I did it, it gave me this error I don't really know why it is giving me this error, but I tried everything that it said, yet it keeps giving the error.
You should remove the node_modules folder inside your home folder, the one at C:\Users\Simone\node_modules. Also, double-check that you don't have a package.json or package-lock.json files in your home folder.
It looks like the error is related to a version conflict for that dependency. You could uninstall your version of Webpack with npm uninstall webpack, add the below dependency to your package.json file, then run npm i to get up-to-date.
"webpack": "4.44.2"
I am trying to follow with pluralsight tutorial and he wrote npm install on the terminal, then a file called npm module is installed on the folder he specified. when I try to install npm this appears to me in the terminal, and the directory which Im trying to install npm on it contains only one document called package-lock.json enter image description here
npm install uses the package.json to install the necessary packages
I can see when you ls, there's no package.json in the directory, just the package-lock which is created where ever you run npm install
Make sure you run the npm install from the same directory the package.json in contained in
the problem is solved, I think that I download the web-dev-starter folder twice by mistake.
After I create my react project with
npx create-react-app
my-app I run
npm start
and get this error as you can see below in the image
node version: 12.16.1
npm version: 6.13.4
enter image description here
I will be grateful if you show me a solution!
and this is my package.js file
https://imgur.com/v8yeKrR
Try removing your node_modules and package-lock.json.
Then reinstall npm i
then start npm start
These kind of problems could be happening when clashing react modules. Delete node_module folder and package-lock.json file. Then run again npm install and npm start.
Use yarn create react-app my-app , cd my-app ,npm start .Now download all the dependencies form npm or yarn. It will work.
I have problems running my web app using this tutorial video React Native Web Full App Tutorial - Build a Workout App for iOS, Android, and Web
in react-native. I've been searching a lot for an answer but there is no accurate one yet that solves my issue.
I downloaded the app from here: git repo.
Try to use:
$ yarn
$ yarn install
$ npm install
$ npm config set #icons:registry https://registry.npmjs.org/
$ rm -rf node_modules
$ npm i https://github.com/Qix-/node-error-ex
$ curl 'https://registry.yarnpkg.com/#types/node/-/node-9.4.2.tgz'
but nothing seems to work, I keep getting this error.
error Couldn't find package "#wow/common#1.0.0" required by "#wow/app#0.0.1" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Couldn't find package "#wow/common#1.0.0" required by "react-native-web-workout-series#0.1.0" on the "npm" registry.
at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:721:66)
at new MessageError (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:750:123)
at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:36539:17)
at Generator.throw (<anonymous>)
at step (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:310:30)
at /usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:323:13
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Or any steps I need to follow to run this app. Since I want to download the app and edit the body content.
I tried to download and test it myself and it worked normally.
Clone it again and follow these steps:
#After cloning enter the folder
cd react-native-web-series
#install all dependencies
yarn install
#Navigate to the web folder
cd packages/web
#start the app
yarn start
Ps. : If a project is using yarn is not a good ideia to run npm commands, do not mix those two
In my case, the reason was the .npmrc file.
You can rename this file
mv ~/.npmrc ~/.npmrc2
npx create-react-app my-app
and rename it back after the installation.
mv ~/.npmrc2 ~/.npmrc
I ran into the same problem here.
And just as #Dmitry Grinko mentioned, it is related to .npmrc file.
I used private npm registry before so that some of package is missing.
Using following registry will pass the problem.
registry=https://registry.npmjs.org/
use npm login in terminal to login into your npm registry.
More information available here:
https://github.com/yarnpkg/yarn/issues/6029
npm install -g npm#latest
npm config set registry https://registry.npmjs.org/
If you're using nvm
nvm install 14.18.0
nvm use 14.18.0
nvm alias default 14.18.0
after look on the git repo - i think that maybe you should try to run npm i (or other commands - im not from react native area) in any package(app,common,web) to itself - like I saw any one of them has package.json of his own
when I built React project it gives following error. What can i do to solve this problem.I use latest react-hot-loader
Here i have attached error picture
Remove your node_modules folder and do yarn install again.
Go to your project folder and run:
rm -rf node_modules
yarn install or npm install