Category Archives: Error

NPM install -g create-react-app [How to Solve]

When the Mac computer is changed and the react scaffold is downloaded, an error is reported. The error is as follows

the solution is divided into the following steps

    1. sudo NPM uninstall – G create react app// configure the image NPM config set registry before deleting it https://registry.npm.taobao.org //Switch to Taobao image and install sudo cnpm install – G create react app.// download

Then I found it successful ~

[Solved] Vue Install less Error: this.getOptions is not a function

Vue installs less. This.getoptions is not a function
the reason is that the highest version is installed by default during installation (NPM install less loader)

solution: uninstall the previous version first and reinstall the lower version

npm uninstall less-loader

npm install less- [email protected]

Android Studio Error: String index out of range 0 [How to Solve]

Android studio compilation project error: string index out of range 0

Compile the project after merging the SVN code. Android studio fails to compile the project. An error message appears: string index out of range 0

Cause: compilation fails due to conflicts caused by merging codes

solution:

Delete the other three files with the same name gradle.Properties , and there are no other three gradle.Properties files with the same name and different suffixes in the original project because of conflicts in the process of merging codes, and ->>> symbols that cannot be compiled, so delete ->>> symbol, build -- > Clear project or build -- > Rebuild project recompile the project, and the problem is solved.

Docker Open Error: Warning: docker.service changed on disk. Run ‘systemctl daemon-reload‘ to reload unit

[root@ct system]# systemctl start docker
Warning: docker.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

System ctl daemon-reload

System ctl start docker

Flutter Error: dump failed because resource AndroidManifest.xml not found [How to Solve]

I encountered this problem yesterday. First of all, I went online to inquire about these three solutions

1: Use the command fluent clean (some users report errors and solve them)

2 manually delete all files in the build/APP/APK and build/APP/outputs directories

3. There is also the official command to use fluent create

These three solutions failed to solve my error reporting. Then I suddenly had an idea that my outermost folder was a Chinese name. Sure enough, I solved the error reporting after I changed the Chinese name to the English name. I hope all developers will not encounter such a bug

Sqllineage Error: OSError: [Errno 99] Cannot assign requested address

Python’s data kinship tool sqllineage

View the data kinship map according to the file

Note that -h must be connected to hostname, and an error will be reported when connecting to IP   OSError: [Errno 99] Cannot assign requested address

sqllineage -g -H sbider-dev-01  -p 60000 -f ./ppn2/update-data/asset_sn_day_partition/asset_sn_day_partition.sql

Help documentation

design sketch

Open the corresponding connection after execution, and you can see the following figure

Tomcat: “localhost:8080” Error 401: Unauthorized

To sum up the unauthorized: 401 error encountered for the first time, in fact, a very simple error:

When running tomcat, when I enter localhost: 8080, a prompt box pops up:
requires a user name and password to log in, that is, I do not have access rights. When clicking cancel:

error 401: unauthorized

analysis

Any client (such as your browser) needs to pass the following cycle: obtain an IP address from the IP name of the site (i.e. your site URL, without the initial ‘http://’). This correspondence (i.e. the correspondence from IP name to IP address translation) is provided by domain name servers (dnss).

Open an IP socket to connect to the IP address. Write HTTP data stream through this socket. The HTTP data stream that receives the response from the web server. The data stream includes a status code whose value depends on the HTTP protocol. Parse the data stream to get state code and other useful information.

The error is generated in the last step described above, that is, when the client receives the HTTP status code and identifies it as 401. After the browser receives the 401 error message, it explains it and provides a dialog box for entering user name/password. Send to the server after completion. After the server verifies, it sends the requested resources to the browser when the verification passes, otherwise it may send 401 error messages.

Solution:

My error at that time was that the port number was occupied: so release the port or redefine the new port number
extension
HTTP 400 – the request is invalid;

Http 401.1 – unauthorized: login failed;

Http 401.2 – unauthorized: login failed due to server configuration problems;

Http 401.3 – ACL prohibits access to resources;

Http 401.4 – unauthorized: authorization is rejected by the filter;

Http 401.5 – unauthorized: ISAPI or CGI authorization failed

[Solved] Unity3d reports an error using the opencv plug-in: unsafe code may only appear if compiling with/unsafe.

Problem description

When using the opencv for unity plug-in, the error “assets \ opencvforunity \ examples \ advanced \ alphablendingexample \ alphablendingexample. CS (530, 17): error CS0227: Unsafe code may only appear if compiling with /unsafe. Enable “Allow ‘unsafe’ code” in the inspector for ‘Assets/OpenCVForUnity/EnoxSoftware.OpenCVForUnity.asmdef’ to fix this error.”

Solution:

There are two ways to modify:

1. Tools entry modification

Tools > on the upper side of the window; OpenCV For Unity > Check use unsafe code
as shown below:

However, if there may be no such entrance, use method 2

2. Modify asmdef file

The. Asmdef file is an assembly definition file. This method is also available in the error prompt
modify the file in the path of assets/opencvforunity/enoxsoftware.opencvforunity.asmdef. After selecting the file, check the allow ‘unsafe’ code option in the inspector window and click apply.