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

Build fails with 'manifest-generator: No such file or directory' #39

Open
gevial opened this issue Aug 12, 2022 · 2 comments
Open

Build fails with 'manifest-generator: No such file or directory' #39

gevial opened this issue Aug 12, 2022 · 2 comments

Comments

@gevial
Copy link

gevial commented Aug 12, 2022

I cloned the repo (tag v1.1.2) and followed the instructions in README to build distributable for customisation, got the following error:

./build-s3-dist.sh: line 262: cd: /Users/Gennadii_Aleksandrov/Documents/git/other/AmazonConnectSandbox/ai-powered-speech-analytics-for-amazon-connect/deployment/../source/../deployment/manifest-generator: No such file or directory

After that the build failed with this:

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/Gennadii_Aleksandrov/Documents/git/other/AmazonConnectSandbox/ai-powered-speech-analytics-for-amazon-connect/source/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/Gennadii_Aleksandrov/Documents/git/other/AmazonConnectSandbox/ai-powered-speech-analytics-for-amazon-connect/source/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Gennadii_Aleksandrov/.npm/_logs/2022-08-12T16_47_09_881Z-debug-0.log
node:internal/modules/cjs/loader:959
  throw err;
  ^

Error: Cannot find module '/Users/Gennadii_Aleksandrov/Documents/git/other/AmazonConnectSandbox/ai-powered-speech-analytics-for-amazon-connect/source/app.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
    at Module._load (node:internal/modules/cjs/loader:804:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.7.0
@rhamnett
Copy link

Same issue

@rhamnett
Copy link

@gevial I coped manifest-generator from here:

https://github.com/aws-solutions/real-time-insights-account-activity/tree/master/deployment/manifest-generator

then edited the build file line 264:
node app.js --target "$build_dist_dir/web_site" --output "$build_dist_dir/web-site-manifest.json"

Hope that helps.

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