assistant-simple: npm start fails

hi,

Application start fails with npm start with below error log.

conversation-simple@0.1.1 start c:\test node server.js

c:\test\node_modules\watson-developer-cloud\lib\base_service.js:73 throw new Error(‘Argument error: username and password are required unless use_unauthenticated is set’); ^

Error: Argument error: username and password are required unless use_unauthentic ated is set at ConversationV1.BaseService.initCredentials (c:\test\node_modules\watson-d eveloper-cloud\lib\base_service.js:73:13) at ConversationV1.BaseService (c:\test\node_modules\watson-developer-cloud\l ib\base_service.js:44:18) at new ConversationV1 (c:\test\node_modules\watson-developer-cloud\conversat ion\v1.js:31:15) at Object.<anonymous> (c:\test\app.js:30:20) at Module._compile (module.js:570:32) at Object.Module._extensions…js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17)

npm ERR! Windows_NT 6.3.9600 npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js” “start” npm ERR! node v6.10.2 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! conversation-simple@0.1.1 start: node server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the conversation-simple@0.1.1 start script ‘node server.js’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the conversation-simple p ackage, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node server.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs conversation-simple npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls conversation-simple npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! c:\test\npm-debug.log

npm-debug.log is as below

0 info it worked if it ends with ok 1 verbose cli [ ‘C:\Program Files\nodejs\node.exe’, 1 verbose cli ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’, 1 verbose cli ‘start’ ] 2 info using npm@3.10.10 3 info using node@v6.10.2 4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ] 5 info lifecycle conversation-simple@0.1.1~prestart: conversation-simple@0.1.1 6 silly lifecycle conversation-simple@0.1.1~prestart: no script for prestart, continuing 7 info lifecycle conversation-simple@0.1.1~start: conversation-simple@0.1.1 8 verbose lifecycle conversation-simple@0.1.1~start: unsafe-perm in lifecycle true 9 verbose lifecycle conversation-simple@0.1.1~start: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;c:\test\node_modules.bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\nodejs;C:\Program Files\Cloud Foundry;C:\Users\Mohanish\AppData\Roaming\npm 10 verbose lifecycle conversation-simple@0.1.1~start: CWD: c:\test 11 silly lifecycle conversation-simple@0.1.1~start: Args: [ ‘/d /s /c’, ‘node server.js’ ] 12 silly lifecycle conversation-simple@0.1.1~start: Returned: code: 1 signal: null 13 info lifecycle conversation-simple@0.1.1~start: Failed to exec start script 14 verbose stack Error: conversation-simple@0.1.1 start: node server.js 14 verbose stack Exit status 1 14 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\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.<anonymous> (C:\Program Files\nodejs\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 conversation-simple@0.1.1 16 verbose cwd c:\test 17 error Windows_NT 6.3.9600 18 error argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “start” 19 error node v6.10.2 20 error npm v3.10.10 21 error code ELIFECYCLE 22 error conversation-simple@0.1.1 start: node server.js 22 error Exit status 1 23 error Failed at the conversation-simple@0.1.1 start script ‘node server.js’. 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 conversation-simple package, 23 error not with npm itself. 23 error Tell the author that this fails on your system: 23 error node server.js 23 error You can get information on how to open an issue for this project with: 23 error npm bugs conversation-simple 23 error Or if that isn’t available, you can get their info via: 23 error npm owner ls conversation-simple 23 error There is likely additional logging output above. 24 verbose exit [ 1, true ]

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (3 by maintainers)

Most upvoted comments

You must rename .example.env to .env

Perhaps the best way is on the command line

rename .example.env .env