Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with installation #3

Open
licarigianluca opened this issue Mar 8, 2019 · 1 comment
Open

Problem with installation #3

licarigianluca opened this issue Mar 8, 2019 · 1 comment

Comments

@licarigianluca
Copy link

Hi,
I'm trying to install CAdES.js with 'npm install' but something goes wrong.

The console output
"Uncaught SyntaxError: Unexpected token *" in es6.js

Which is the correct way of installing it?
I'm trying also to link this library with Fortify. Can you help me please?

thank you

@YuryStrozhevsky
Copy link
Contributor

@licarigianluca I have done the same npm install in a fresh copy of CAdESjs repository:

npm install
npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 909 packages from 658 contributors and audited 7531 packages in 17.206s
found 16 vulnerabilities (3 low, 11 moderate, 1 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

As you can see - no problems there. Do not really know what exactly you have done, but most probably you were trying to use ES6 modules inside ES5 code. Also the file name es6.js exists in CAdESjs only under examples folder, it is not a part of main library code. And in order to get the CAdESjs example working you need to run npm run build under the examples/CAdESComplexExample folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants