使用node:8-alpine docker文件时appmetrics-dash模块出现问题

时间:2018-12-12 08:23:13

标签: docker alpine

这是我在以基本映像为node:8-alpine的docker容器内执行我的节点应用程序时遇到的以下错误

throw err;
    ^

Error: Cannot find module 'appmetrics-dash'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/app/proxyapp/proxyapp.js:3:1)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)

1 个答案:

答案 0 :(得分:0)