0

I am trying to deploy lambda code, using aws serverless.

I am using a Virtual private server for that task, and i cannot properly run the serverless command. Each time, he throw me this error :

/usr/local/lib/node_modules/serverless/node_modules/essentials/index.js:21
        throw reason;
        ^

ReferenceError: navigator is not defined
    at getChromeVersion (/usr/local/lib/node_modules/serverless/node_modules/supports-color/browser.js:5:68)
    at Object.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/supports-color/browser.js:14:22)

I have installed chromium, and the 'google-chrome-stable' package, but without success.

Someone can help me ?

Renaud

4

0 回答 0