electron-nuxt | js quick start boilerplate with vue-cli scaffolding
kandi X-RAY | electron-nuxt Summary
kandi X-RAY | electron-nuxt Summary
The boilerplate for making electron applications built with vue / nuxt. * available in renderer and main process ** customizable during vue-cli scaffolding.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Compares two arrays .
- Check for node version .
- Register a protocol
- Disallow npm package
- Create the dev directory
electron-nuxt Key Features
electron-nuxt Examples and Code Snippets
Community Discussions
Trending Discussions on electron-nuxt
QUESTION
This is my package.json file. As you can see it has a dev command that I can execute with yarn dev
I figured that if I copy the command that yarn dev would run which is node .electron-nuxt/dev.js --inspect I would be able to run the command outside of yarn (to attach the script to my debugger with node). But when I copied that exact command, it produced no errors and did nothing. Why does yarn dev work but not node .electron-nuxt/dev.js --inspect if they point to the same piece of code?
...ANSWER
Answered 2020-Jun-17 at 04:30This happens because of how npm/yarn locate executable files. It's called mode of operation and it's basically how these package managers resolve and execute modules.
While both behave somehow differently, the underlying operation is still similar. There are two modes local and global. the package manager tries to resolve the module in local mode first; that's from the directory where you run the script. If it didn't find it then it tries to resolve it from the global scope.
So to answer your question, yarn execute the file from the global scope.
- Resources
How node resolves modules Node.js docs
The node_modules problem Yarn docs
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install electron-nuxt
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page