Getting "Invalid value type" error when trying to execute yarn in my react-rails project - reactjs

I am getting:
error An unexpected error occurred: "Invalid value type 2:0 in /Users/myname/Desktop/work2/reservations_fully_paid/Foggle/yarn.lock".
info If you think this is a bug, please open a bug report with the information provided in "/Users/myname/Desktop/work2/reservations_fully_paid/Foggle/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
When trying to execute yarn in my react-rails project

Related

Facing Yarn error in jenkins build : error An unexpected error occurred: unable to get local issuer certificate"

My java application with ui in react . How can i resolve this error in my jenkins build . As part of maven tasks , my ui module is built . and then it fails with this error .
how can i resolve it ? pls help !
13:14:10 [INFO] error An unexpected error occurred: "https://registry.yarnpkg.com/falafel/-/falafel-2.2.4.tgz: unable to get local issuer certificate".
13:14:11 [INFO] error An unexpected error occurred: "https://registry.yarnpkg.com/falafel/-/falafel-2.2.4.tgz: unable to get local issuer certificate".info If you think this is a bug, please open a bug report with the information provided in "/mnt/jenkinspan/workspace/my-project/my-branch/ws/yarn-error.log".

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.

Error while Installing Generation2 package

While Installing package ( Second generation package) Got following Error :
ERROR: Encountered errors installing the package!, Installation errors:
An unexpected error occurred. Please include this ErrorId if you contact support: 1210197770-1688452 (446490484), Details: PT1_profileSessionSetting1647237862295: An unexpected error occurred. Please include this
ErrorId if you contact support: 1210197770-1688452 (446490484)
ERROR running force:package:install:report: Installation errors:
I can't figure out what could be the issue any help is much appreciated

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

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.

Error: Cannot find module '../config/env' when use ```npm start```command

Unfortunately, as I type npm start command, there in unexpected error. Options from the following discussions are not useful for the mac.
https://www.google.com/url?q=https://github.com/facebook/create-react-app/issues/6950&sa=D&source=hangouts&ust=1605624698772000&usg=AFQjCNHopXPtIHDOftJpnxm7EGuQNSSVMw
Is there any other solution please?
The error is shown in the snapshot.

Resources