pdfjs-dist ERROR " | | =" Need help solving this error - pdfjs-dist

I am receiving this error when I try and use pdfjs I have used different versions as well and receive the same error. Not sure what is causing it. The documentation I used is [HERE.]
$ npm install pdfjs-dist
NPM DOCUMENTATION
ERROR
CODE USED

Related

Possibly corrupt gluon download - message "graalvm-svm-java11-darwin-m1-gluon-22.1.0.1-Final” is damaged and can’t be opened

This might just be me doing something stupid but I'm getting a popup message on running java --version when I use the install: graalvm-svm-java11-darwin-m1-gluon-22.1.0.1-Final
"graalvm-svm-java11-darwin-m1-gluon-22.1.0.1-Final” is damaged and can’t be opened
Does anyone else have the same issue? I've switched to my Pentium MacMini, so it's not urgent; but I do need Java11 and not 17 due to a dependency issue.
The following versions all run correctly and were installed using the same procedure and I have set the necessary quarantine paths.
graalvm-ce-java11-22.3.1
graalvm-svm-java11-darwin-gluon-22.1.0.1-Final
graalvm-svm-java17-darwin-gluon-22.1.0.1-Final
openjdk11-openj9
graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final
So it's only the ...-java11-...-m1...tar that gives the message.
I looked for an older m1 release, but 22.1.0.1 was the only one I could see.
The GraalVM build graalvm-svm-java11-darwin-m1-gluon-22.1.0.1-Final downloaded from https://github.com/gluonhq/graal/releases works just fine.
When you use the GluonFX plugin, the first time you run mvn gluonfx:build you get prompted to add a password, just to remove the quarantine from it.
But if you want to run anything like /path/to/graalvm/bin/java -version before that, the folder is still under quarantine, that won't work, and you will get the error that you posted:
"graalvm-svm-java11-darwin-m1-gluon-22.1.0.1-Final” is damaged and can’t be opened
You just need to remove the quarantine yourself, running:
sudo xattr -r -d com.apple.quarantine /path/to/graalvm
See the open issue https://github.com/oracle/graal/issues/1724 for reference.

brew install specific version of a package fails

For my project, I need to install a specific version of the icu4c package. I used to follow the instructions written in this answer and it was working. However, recently, when I needed to do the same, it failed with the following error
Error: icu4c: undefined method `cellar' for #<BottleSpecification:0x00007fa0d75096a8>
After some investigations, I concluded that brew has new style of .rb files and old versions may not be compatible. To fix it, I run brew style --fix icu4c.rb which seemed to fix the style issues. However, now, I got the following error:
Error: Failed to load cask: ./icu4c.rb
Cask 'icu4c' is unreadable: wrong constant name #<Class:0x00007fa68d2d9278>
Warning: Treating ./icu4c.rb as a formula.
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
#=#=#
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "icu4c_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
I saw a number of places that this might be due to curl or xcode command line tools. I updated both of them but could not proceed further. Any help would be greatly appreciated.

SyntaxError: Unexpected token 'export'

I installed appium-doctor npm install -g appium-doctor.
I then tried to run appium-doctor --android to see any missing dependencies for android.
However, I got this error
.....\AppData\Roaming\nvm\v13.2.0\node_modules\appium-doctor\node_modules\uuid\dist\esm-browser\index.js:1
export { default as v1 } from './v1.js';
SyntaxError: Unexpected token 'export'
^^^^^^
From googling it's an issue with nodeJS using CommonJS instead of ES6 syntax, but I don't know how to solve this error on my command line.
No valid exports main found for node_modules\uuid #5381
Node.js 13.5.0 seems to be broken. I tried 13.14.0 and 14.2.0. Both of
them work.
Please note you should use Node.js even versions for production. We
support Node 10, 12, and 14.
I was running into the exact same error when I installed apollo-server. Node 14.5 solved it as Samuel mentioned.

Buildozer build failed with JAVA_HOME issue

ok so i get this error
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre"
now im aware that i need to remove 'jre' off the end of this path there is hundreds of questions already solved on here with this issue. i.e use /etc/profile or /etc/enviroment and change the JAVA_HOME path the source /etc/enviroment to refresh it. Ive done this and can check it worked with echo $JAVA_HOME returning the correct path. But when i run buildozer again i get the same issue (its like the path isnt updated somewhere maybe).
Finally ive tried to run:
sudo apt-get install default-jre
and
sudo apt-get install default-jdk
but both return an error saying:
Loading repository data...
Reading installed packages...
'default-jdk' not found in package names. Trying capabilities.
No provider of 'default-jdk' found.
Resolving package dependencies...
Nothing to do.
So im not sure what i should be doing, i must be missing something obvious that i cant see, sorry interent but im stuck :(

Yeoman: Cannot find 'imagemin-jpegtran'

I've been searching a solution for this error for over a week and cannot find anything. I can't build my dist package on Yeoman due to this imagemin-jpegtran
I tried to upload an image to show the error and make things easier but Stackoverflow doesn't allow me due to reputation (no idea what reputation has to do with images... but anyway...).
This is the error:
Running "concurrent:dist" (concurrent) task
Warning: Loading "imagemin.js" tasks... ERROR
Error: Cannot find module 'imagemin-jpegtran'
Warning: Task "imagemin" not found. Use --force to continue
Aborted due to warnings. Use --force to continue
Aborted due to warnings.
Ok I found a solution. You have to upgrade to the latest version of grunt-contrib-imagemin.
For that I did
npm uninstall --save-dev grunt-contrib-imagemin
and then
npm install --save-dev grunt-contrib-imagemin

Resources