missing "bozon" in devDependencies
See original GitHub issueHow 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 dirbozon 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:
- Created 6 years ago
- Reactions:1
- Comments:5
Top 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 >
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
Since
bozon
needs to be installed globally, usenpm link bozon
to link your globalbozon
into project directory.bozon
has been added as dev dependencies in v0.8.2