Why is yarn throwing an error after installing babel-loader? - reactjs

After I installed the react-icons package, my code threw an error saying my babel-loader was missing, so I installed that package too.
Next thing I knew, I ran yarn start and this error came up:
Assertion failed: (napi_create_string_utf8(env, events->events[idx].path, NAPI_AUTO_LENGTH, &args[0]) == napi_ok), function fse_dispatch_event, file ../src/fsevents.c, line 147.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I tried using npm start and the app started just fine.
What's wrong?

I believe this is caused by an upstream issue with fsevents.

Related

yarn "EPERM: operation not permitted, mkdir"

when I try to use yarn install it says
warning ........\package.json: No license field
error An unexpected error occurred: "EPERM: operation not permitted, mkdir 'C:\Users\HiteshKumar'".
info If you think this is a bug, please open a bug report with the information provided in "C:\Users\Hitesh Kumar\OneDrive\Desktop\intern\mvp-web\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
screenshot of the error
I was trying to use the command yarn install to install the node modules required for the project.

when i run `ng update #angular/cli --migrate-only --from= to solve the problem it gives me this error "Could not find package.json"

when i run ng serve on node js command prompt i got this error "The serve command requires to be run in an Angular project, but a project definition could not be found". and after i run this command tong update #angular/cli --migrate-only --from=11.2.10 got also this error An unhandled exception occurred: Could not find package.json
See "C:\Users\User\AppData\Local\Temp\ng-Lbnxei\angular-errors.log" for further details.
can any one help me
Try like this
ng update #angular/cli --from 10 --to 11 --migrate-only
This is wrong syntax --from=11.2.10

Failed to compile, Module not found

I got the following error after runing a npm start command with a running application in other pcs with no trouble, I have tried cleaning the cache, deleting the package-lock.json file and node_modules folder to recompile, but always get the same error?
Any ideas?
Here'r the complete Error message.
Failed to compile
./src/pages/artistas/Barrios.js
Module not found: Can't resolve '../../assets/img/recibos/Álvaro-Barrios---Alegría-de-la-paz.jpg' in 'C:\Users\Stefany\Downloads\sanaciones-master\sanaciones-master\src\pages\artistas'
This error occurred during the build time and cannot be dismissed.
--
It is interesting that it seems to work for some miliseconds but then it fails and the error message appears. The paths to the image is correct, since as I mentioned it works perfect in other pcs.
Thanks in advance for your help.

When I tried to run ng new in one of my folders on Mac I am getting error an error stating package install failed and schematic workflow failed

1
how to fix the error which I am getting as shown in screenshot above ? I had used home-brew to install npm and node
Looks like your user dont have required access to complete the package installation so try
sudo ng new comps

ECMDERR during bower install

I'm new to git, bower and electron etc.
I'm trying to install some dependencies through command line like this
bower install angular angular-route angular-material --save
It gives me error
I found this solution that says
You are probably behind a firewall. Try cloning via https – that has a higher chance of not being blocked
Then I tried this
bower install https://github.com/angular/bower-angular.git
but it still giving me error
Basically Error is
ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular.git", exit code of #128 fatal: unable to connect to github.com: github.com[0: 192.30.252.128]: errno=No such file or directory
Additional error details: fatal: unable to connect to github.com:
github.com[0: 192.30.252.128]: errno=No such file or directory
Can anyone have Idea what I'm doing wrong or what I'm missing here? I'm totally stuck over here. Any kind of help will be appreciated.
try this
git config --global url."https://".insteadOf git://
check this question for more details:
How to fix bower ECMDERR
I had some invalid proxy settings in .bowerrc
Removed them. All good :)
I managed to get it to work after i changed my .gitconfig file to sslVerify = false
Here is how my .gitconfig looks like:
[http]
sslVerify = false
[url "https://"]
insteadOf = git://
[url "https://github.com/"]
insteadOf = git://github.com/

Resources