question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'package.json'

See original GitHub issue

This is a

  • Bug Report(?)
  • Feature Request
  • Other

nexe -i ./index.js -o Thumbnailer.bin -p /usr/bin/python2 --build 

After using nexe and trying to run my Binary i get the following Error Message:

╰─$ ./Thumbnailer.bin
internal/modules/cjs/loader.js:596
    throw err;
    ^

Error: Cannot find module 'package.json'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at f (/home/lwolf/Projekte/Thumbnailer/Thumbnailer.bin:33356:1092)
    at u (/home/lwolf/Projekte/Thumbnailer/Thumbnailer.bin:33356:1430)
    at c (/home/lwolf/Projekte/Thumbnailer/Thumbnailer.bin:33356:2750)
    at b.require (/home/lwolf/Projekte/Thumbnailer/Thumbnailer.bin:33356:3346)
    at Object.<anonymous> (/home/lwolf/Projekte/Thumbnailer/Thumbnailer.bin:8401:26)
    at c (/home/lwolf/Projekte/Thumbnailer/Thumbnailer.bin:33356:3584)

in the index.js i do only require: const puppeteer = require('puppeteer');



Please also provide:

  • Platform(OS/Version): Manajro 17
  • Host Node Version: 10.4
  • Target Node Version: 10.4
  • Nexe version: 2.0.0-rc.30
  • Python Version: 2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
JamesMGreenecommented, Jul 11, 2018

It should be a non-issue in the upcoming release (i.e. if you use the @next branches). I’m building two complex apps with that just fine.

1reaction
leon-wolfcommented, Jul 4, 2018

Did not get any respond and fixed it by using zeit/pkg.

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 - Stack Overflow
There are a lot, but I can't seem to find a solution for this. I've already deleted node_modules folder and package-lock.json file from...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
How to Fix the "cannot find module" Error · delete the node modules folder by running rm -rf node_modules · delete package.lock.json file...
Read more >
Error: Cannot find module '/package.json' · Issue #1353 - GitHub
Dashboard app unable to start, displaying error message. After starting the Cube.js development server $ npm run dev Navigate to "Dashboard ...
Read more >
Error: Cannot find module in JavaScript [SOLVED]
We can solve Error: Cannot find module by installing the missing module. We can use npm tool to install the mising module.
Read more >
How to resolve "Cannot find module" error in Node - Sabe.io
To fix the Cannot find module error, simply install the missing modules using npm . ... This will install the project's dependencies into...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found