node-gyp icon indicating copy to clipboard operation
node-gyp copied to clipboard

Use of const in strict mode.

Open OlMi1 opened this issue 3 years ago • 0 comments

Log shows:

/root/.nvm/v0.10.48/lib/node_modules/node-gyp/bin/node-gyp.js:7
const envPaths = require('env-paths')
^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    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 Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:945:3

code occurs when running node-gyp rebuild What should I do?

OlMi1 avatar Jan 26 '22 10:01 OlMi1