PeculiarVentures / CAdES.js

CAdESjs is an implementation of CAdES (CMS Advanced Electronic Signatures)in pure Javascript.
Other
18 stars 6 forks source link

Problem with installation #3

Open licarigianluca opened 5 years ago

licarigianluca commented 5 years ago

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 commented 5 years ago

@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.