stateofca / opencred

OpenCred Verifiable Credentials Platform
BSD 3-Clause "New" or "Revised" License
42 stars 8 forks source link

"npm run build" fails #9

Closed naga-cid closed 1 week ago

naga-cid commented 1 month ago

I am trying the "Run via node" method.

npm run build fails with the below error,

npm error Missing script: "build"
npm error
npm error To see a list of scripts, run:
npm error   npm run
npm error A complete log of this run can be found in: /home/ec2-user/.npm/_logs/2024-08-19T11_05_48_324Z-debug-0.log

But I can successfully start the application with npm run start

jorgefl0 commented 1 week ago

Hello, I am running into the issue as well. We running npm run we see that the build script is not defined. Is this an issue with the documentation?

npm run
Lifecycle scripts included in opencred-platform@8.2.0:
  start
    node --preserve-symlinks dev.js
  test
    npm run lint && npm run test-node
available via `npm run-script`:
  generate:prime256v1
    node ./common/generatePrime256v1Key.js
  generate:rsa256
    node ./common/generateRSA256Key.js
  tunnel
    lt -p 22080
  audit-vp
    node ./test/utils/auditVpToken.js
  lint
    eslint --ext .cjs,.js,.vue .
  preview
    vite preview
  test-node
    cross-env NODE_ENV=test node --trace-warnings --preserve-symlinks test.js test
  test:load
    artillery run ./test/load/artillery.yaml
  test:load:qa
    env-cmd artillery run -e qa ./test/load/artillery.yaml
  validateConfig
    npx ajv-cli validate -d configs/combined.yaml -s configs/combined.schema.json -c ajv-formats --spec=draft7
mandyvenables commented 1 week ago

@naga-cid @jorgefl0 Upon speaking with the development team, they said the npm build step is not needed. I have created a PR to remove it from the README https://github.com/stateofca/opencred/pull/10

mandyvenables commented 1 week ago

PR merged in, closing.