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

npm start -r fails with Failed to load registration file Error #31

Open
ajkessel opened this issue Nov 19, 2021 · 1 comment
Open

npm start -r fails with Failed to load registration file Error #31

ajkessel opened this issue Nov 19, 2021 · 1 comment

Comments

@ajkessel
Copy link

ajkessel commented Nov 19, 2021

Following the non-Docker installation directions exactly on a standard Ubuntu box fails when attempting to generate the registration file. (Path below for directory with github clone/build has been simplified to /path/bridge):

npm start -r

mx-puppet-instagram@0.0.0 start /path/bridge/instagram
npm run-script build && node ./build/index.js

mx-puppet-instagram@0.0.0 build /path/bridge/instagram
tsc

Nov-18 19:40:24.758 [PuppetBridge] error: Failed to load registration file Error: ENOENT: no such file or directory, open 'instagram-registration.yaml'
at Object.openSync (fs.js:497:3)
at Object.readFileSync (fs.js:393:35)
at PuppetBridge.readConfig (/path/bridge/instagram/node_modules/mx-puppet-bridge/lib/src/puppetbridge.js:129:49)
at PuppetBridge. (/path/bridge/instagram/node_modules/mx-puppet-bridge/lib/src/puppetbridge.js:154:18)
at Generator.next ()
at /path/bridge/instagram/node_modules/mx-puppet-bridge/lib/src/puppetbridge.js:20:71
at new Promise ()
at __awaiter (/path/bridge/instagram/node_modules/mx-puppet-bridge/lib/src/puppetbridge.js:16:12)
at PuppetBridge.init (/path/bridge/instagram/node_modules/mx-puppet-bridge/lib/src/puppetbridge.js:153:16)
at /path/bridge/instagram/build/index.js:74:22
at Generator.next ()
at /path/bridge/instagram/build/index.js:8:71
at new Promise ()
at __awaiter (/path/bridge/instagram/build/index.js:4:12)
at run (/path/bridge/instagram/build/index.js:73:12)
at Object. (/path/bridge/instagram/build/index.js:203:1)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47 {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: 'instagram-registration.yaml'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! mx-puppet-instagram@0.0.0 start: npm run-script build && node ./build/index.js
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the mx-puppet-instagram@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@kumitterer
Copy link

I was seeing the same issue, but figured it out by comparing the instructions here to the instructions at https://github.com/Sorunome/mx-puppet-slack - the correct command to generate the registration file is npm run start -- -r

kumitterer added a commit to kumitterer/mx-puppet-instagram that referenced this issue Jan 31, 2022
The proposed command to generate the registration file is incomplete, which causes the process to fail. This change "fixes" Sorunome#31
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