von https://github.com/microsoftgraph/nodejs-connect-rest-samplesendmail Funktion scheinen funktioniert nicht mit Microsoft Graph
i durch den ersten Schritt signin kann, und ich sehe meine microsoft Account-Namen bereits, aber wenn ich einen Test senden Sie es klicken, um eine E-Mail ist nicht it respond me this
Arbeits Nach ich klonen dieses Beispiel aus gitHub ich nur ein Stück Code ändern (My APIKEY und clientID bei /utils/config.js einlegen)
module.exports = {
creds: {
redirectUrl: 'http://localhost:3000/token',
clientID: 'd5cec81e-13b3-XXXX-b90f-de0b123feaa4',
clientSecret: '9G8ay7BhvXXXXXX35JXONhSc',
identityMetadata: 'https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration',
allowHttpForRedirectUrl: true, // For development only
responseType: 'code',
validateIssuer: false, // For development only
responseMode: 'query',
scope: ['User.Read', 'Mail.Send', 'Files.ReadWrite']
}
};
und ich zusammengestellt und führen sie es. das ist alles
hier ist mein log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]: [email protected]
6 silly lifecycle [email protected]: no script for prestart, continuing
7 info lifecycle [email protected]: [email protected]
8 verbose lifecycle [email protected]: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/st4rboy/Desktop/Intern/nodejs-connect-rest-sample-master/node_modules/.bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
10 verbose lifecycle [email protected]: CWD: /Users/st4rboy/Desktop/Intern/nodejs-connect-rest-sample-master
11 silly lifecycle [email protected]: Args: [ '-c', 'mocha ./tests/confTest.js && node ./bin/www' ]
12 silly lifecycle [email protected]: Returned: code: 1 signal: null
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start: mocha ./tests/confTest.js && node ./bin/www
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:886:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid [email protected]
16 verbose cwd /Users/st4rboy/Desktop/Intern/nodejs-connect-rest-sample-master
17 error Darwin 16.6.0
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
19 error node v6.10.3
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error [email protected] start: mocha ./tests/confTest.js && node ./bin/www
22 error Exit status 1
23 error Failed at the [email protected] start script 'mocha ./tests/confTest.js && node ./bin/www'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the nodejs-microsoft-graph-connect package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error mocha ./tests/confTest.js && node ./bin/www
23 error You can get information on how to open an issue for this project with:
23 error npm bugs nodejs-microsoft-graph-connect
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls nodejs-microsoft-graph-connect
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
Bitte senden Sie Ihren Code. Als Text in der Frage. – JeffUK
@JeffUK Hinzugefügt Sir – Joey