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.

missing "bozon" in devDependencies

See original GitHub issue

How to reproduce:

  • bozon new PROJECT (here under OSX)
  • transfer project to linux (here via git push/pull) except for the node_modules-subdir
  • npm install in the PROJECT’s dir
  • bozon start

That led to the error:

module.js:328
    throw err;
    ^

Error: Cannot find module 'bozon/lib/tasks'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/DIR/PROJECT/gulpfile.js:1:63)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
Error launching app
Unable to find Electron app at [...]

Fix: in the file PROJECT/package.json add to devDependencies the following dependency: "bozon": "^0.7.1" and subsequently npm install

I found that as a solution since the module bozon/lib/tasks was in case of OSX found as PROJECT/node_modules/bozon/lib/tasks.js but missing in case of linux.

So “bozon” seems actually to be a missing devDependency.

HTH and kind regards, Thomas

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
alchaplinskycommented, Sep 4, 2017

Since bozon needs to be installed globally, use npm link bozon to link your global bozon into project directory.

0reactions
alchaplinskycommented, May 13, 2018

bozon has been added as dev dependencies in v0.8.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding dependencies to a package.json file - npm Docs
Specifying dependencies and devDependencies in a package.json file.
Read more >
npm install won't install devDependencies - Stack Overflow
On windows for some reason when I run npm install it won't install devDependencies. AFAIK it should. If I run npm install --dev ......
Read more >
Installing Dev Dependencies with npm: Beginners' Guide
NPM installs devDependencies within the package. json file. The 'npm install' command should add all the dependencies and devDependencies ...
Read more >
dependencies vs devDependencies vs peerDependencies in ...
We will discuss the difference between dependencies vs devDependencies vs peerDependencies in package.
Read more >
What are dependencies and devDependencies in Yarn?
Learn the 24 patterns to solve any coding interview question without getting lost in a maze of LeetCode-style practice problems. Practice your skills...
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