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

[Bug] Acorn error: Invalid number #417

Closed
PMExtra opened this issue Oct 28, 2017 · 2 comments
Closed

[Bug] Acorn error: Invalid number #417

PMExtra opened this issue Oct 28, 2017 · 2 comments
Labels

Comments

@PMExtra
Copy link

PMExtra commented Oct 28, 2017

Error when compile the keypress.

Command: npm run build && nexe build/main.js -o dist/main, error log:

 nexe 2.0.0-rc.17
Acorn error: Invalid number (374:30)
File: /mosaic/node_modules/co-prompt/node_modules/keypress/index.js

372      var s = key.sequence;
373      var b = s.charCodeAt(3);
374      key.x = s.charCodeAt(4) - 040;
375      key.y = s.charCodeAt(5) - 040;
376
377      key.scroll = 0;
378

Acorn error: Invalid number (374:30)
File: /mosaic/node_modules/co-prompt/node_modules/keypress/index.js

372      var s = key.sequence;
373      var b = s.charCodeAt(3);
374      key.x = s.charCodeAt(4) - 040;
375      key.y = s.charCodeAt(5) - 040;
376
377      key.scroll = 0;
378


⠋ nexe 2.0.0-rc.17undefined
✔ Downloading...100%
✔ Entry: 'build/main.js' written to: dist/main
✔ Finished in 14.207s

When I run the ./dist/main, the error output:

module.js:471
    throw err;
    ^

Error: Cannot find module 'commander'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at u (/mosaic/dist/main:112:1092)
    at f (/mosaic/dist/main:112:1430)
    at c (/mosaic/dist/main:112:2520)
    at y.require (/mosaic/dist/main:112:3117)
    at Number.<anonymous> (/mosaic/dist/main:15:17)
    at c (/mosaic/dist/main:112:3333)




Please also provide:

  • Platform(OS/Version): macOS 10.12
  • Host Node Version: v6.11.1
  • Target Node Version:
  • Nexe version: 2.0.0-rc.17
  • Python Version: 2.7.10
@linuswillner
Copy link

Getting this too on a different module, that being mkdirp.

@calebboyd
Copy link
Member

@PMExtra It looks like there might be an open PR on keypress TooTallNate/keypress#21

@LWTechGaming If you are able to update mkdirp the later versions support strict mode. Pinning it in your lockfile etc.

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

No branches or pull requests

3 participants