Cannot find module 'package.json'
See original GitHub issueThis 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:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.Did not get any respond and fixed it by using zeit/pkg.