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

Trying to start the server. Need help. #1

Open
lquessenberry opened this issue Jan 24, 2020 · 5 comments
Open

Trying to start the server. Need help. #1

lquessenberry opened this issue Jan 24, 2020 · 5 comments

Comments

@lquessenberry
Copy link

$ npm start [±master ●]

marketing-js@0.1.0 start /Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode
source settings.conf && node app.js

Needs latest SSL Root Certificate Authority data /Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode/node_modules/ssl-root-cas/ssl-root-cas-latest.js
Loading latest certificates from https://mxr.mozilla.org/nss/source/lib/ckfw/builtins/certdata.txt?raw=1
internal/modules/cjs/loader.js:797
throw err;
^

Error: Cannot find module 'swagger-tools/middleware/swagger-ui'
Require stack:

  • /Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode/app.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
    at Function.Module._load (internal/modules/cjs/loader.js:687:27)
    at Module.require (internal/modules/cjs/loader.js:849:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (/Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode/app.js:10:19)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
    at internal/main/run_main_module.js:17:11 {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode/app.js'
    ]
    }
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! marketing-js@0.1.0 start: source settings.conf && node app.js
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the marketing-js@0.1.0 start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/lquessenberry/.npm/_logs/2020-01-24T16_02_12_907Z-debug.log

lquessenberry@Lees-MacBook-Pro ~/Sites/bitnami-docker-suitecrm/nodecode [10:02:12]

$ npm install [±master ●]
audited 487 packages in 0.996s
found 33 vulnerabilities (11 low, 2 moderate, 20 high)
run npm audit fix to fix them, or npm audit for details

@lquessenberry
Copy link
Author

lquessenberry commented Jan 24, 2020

Progress

Okay after I manually installed swagger like this

npm i swagger-tools

I now get the following output.

> $ npm start                                                                                                                                                                                                           [±master ●]

> marketing-js@0.1.0 start /Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode
> source settings.conf && node app.js

Needs latest SSL Root Certificate Authority data /Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode/node_modules/ssl-root-cas/ssl-root-cas-latest.js
Loading latest certificates from https://mxr.mozilla.org/nss/source/lib/ckfw/builtins/certdata.txt?raw=1
[{"code":"UNUSED_DEFINITION","message":"Definition is not used: #/definitions/FullName","path":["definitions","FullName"]},{"code":"UNUSED_DEFINITION","message":"Definition is not used: #/definitions/Modules","path":["definitions","Modules"]}] 2
Skipped 2 untrusted certificates.
Processed 150 certificates.
Wrote 150 certificates in '/Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode/node_modules/ssl-root-cas/pems/'.
Wrote '/Users/lquessenberry/Sites/bitnami-docker-suitecrm/nodecode/node_modules/ssl-root-cas/ssl-root-cas-latest.js'.
##########################################################################################
#                                                                                        #
#  Downloaded the latest Root Certificate Authorities. Restart your server to use them.  #
#                                                                                        #
##########################################################################################

And when I visit the browser:

Cannot GET /

@lquessenberry
Copy link
Author

Seems the server is running now, but I am still not able to create a contact that lands in SuiteCRM

@lquessenberry
Copy link
Author

When I try to authenticate Sugarcrm plugin this is what I get.

Authorization failed with the error message, 'There was an unknown error encountered when trying to obtain the access token.'

@lquessenberry
Copy link
Author

I think that may actually not be a big deal, but I don't know how to test whether it's authorized or not.

@lquessenberry
Copy link
Author

I am getting this output on the node server.

[{"code":"UNUSED_DEFINITION","message":"Definition is not used: #/definitions/FullName","path":["definitions","FullName"]},{"code":"UNUSED_DEFINITION","message":"Definition is not used: #/definitions/Modules","path":["definitions","Modules"]}] 2

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

1 participant