关于finalhandler的npm启动错误

时间:2018-07-31 16:18:37

标签: npm raspberry-pi3 npm-install alexa alexa-skill

运行npm start时出现以下错误:

pi@raspberrypi:~/alexa-avs-sample-app/samples/companionService $ npm start
  

alexa-voice-service-sample-companion-service@1.0.0开始/ home / pi / alexa-avs-sample-app / samples / companionService   节点./bin/www

此节点服务需要运行以存储令牌信息内存并将其出售给AVS应用。

/home/pi/alexa-avs-sample-app/samples/companionService/node_modules/express/node_modules/finalhandler/index.js:11
var debug = require('debug')('finalhandler')
                            ^
TypeError: object is not a function
    at Object.<anonymous> (/home/pi/alexa-avs-sample-app/samples/companionService/node_modules/express/node_modules/finalhandler/index.js:11:29)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/pi/alexa-avs-sample-app/samples/companionService/node_modules/express/lib/application.js:14:20)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)

npm ERR! alexa-voice-service-sample-companion-service@1.0.0 start: `node ./bin/www`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the alexa-voice-service-sample-companion-service@1.0.0 start script.
npm ERR! This is most likely a problem with the alexa-voice-service-sample-companion-service package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./bin/www
npm ERR! You can get their info via:
npm ERR!     npm owner ls alexa-voice-service-sample-companion-service
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.1.19-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! cwd /home/pi/alexa-avs-sample-app/samples/companionService
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/alexa-avs-sample-app/samples/companionService/npm-debug.log
npm ERR! not ok code 0

缺少哪个软件包需要安装? 预先感谢您的帮助!

0 个答案:

没有答案