Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Octal literals are not allowed in strict mode #76

Open
tolyanor opened this issue Dec 21, 2017 · 2 comments
Open

SyntaxError: Octal literals are not allowed in strict mode #76

tolyanor opened this issue Dec 21, 2017 · 2 comments

Comments

@tolyanor
Copy link

I try use msexcel-builder and got error:

/home/tln/www/nodejs/dreports/node_modules/msexcel-builder/lib/msexcel-builder.js:45
      if (!existsSync(target)) fs.mkdirSync(target, 0755);
                                                    ^^^^
SyntaxError: Octal literals are not allowed in strict mode.
    at Object.exports.runInThisContext (vm.js:78:16)
    at Module._compile (module.js:543:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/tln/www/nodejs/dreports/toEmail.js:8:20)
    at Module._compile (module.js:571:32)

how I can resolve this error? I use node v4.3
Thanks!

@zohaib545
Copy link

Could anybody solve this?

@JonnoFTW
Copy link

Change 0755 to 0o755, needs a pull request though and this project looks unmaintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants