I am trying to build gzweb inside a docker image But there's a problem during building it
/root/gzweb/node_modules/env-paths/index.js:7
const {env} = process;
^
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/root/gzweb/node_modules/node-gyp/bin/node-gyp.js:7:18)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
There are node-gyp build errors, exiting.
I am trying to build gzweb inside an instance first after copied the code at branch gzweb_1.4.0 and occurred the syntax error in node-gyp build step. My Dockerfile works like below:
I am trying to build gzweb inside a docker image But there's a problem during building it
I am trying to build gzweb inside an instance first after copied the code at branch
gzweb_1.4.0
and occurred the syntax error in node-gyp build step. My Dockerfile works like below: