0

I am deploying my node application on Heroku and I keep getting the below error message.

{ SyntaxError: /app/.heroku/node/lib/node_modules/npm/node_modules/cmd-shim/index.js: Legacy octal literals are not allowed in strict mode (166:15)

Obviously it has something to do with parsing octal literals in strict mode.

It is also obvious that the cmd-shim/index.js file is the one generating this error, however, I can't edit this file.

I need help with a workaround of this issue, or how to resolve it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.