Auto yarn/npm install when node_modules is missing in src-capacitor/src-cordova
See original GitHub issueDescribe the bug If I install the capacitor mode and delete node_modules it shows that capacitor isn’t installed.
Codepen/jsFiddle/Codesandbox (required) I can’t because it’s for node_modules folder and codesandbox doesn’t allow to delete
To Reproduce Steps to reproduce the behavior:
- Create a new blank proyect
- Execute
quasar mode add capacitor
- Execute
quasar dev -m capacitor -T android
orquasar dev -m capacitor -T ios
- See that it works (starts the IDE)
- Delete node_modules
- Execute
yarn install
- Execute
quasar dev -m capacitor -T android
orquasar dev -m capacitor -T ios
- The IDE doesn’t start and an error of “capacitor don’t found” it’s showed
Expected behavior Set the capacitor and all the required modules in devDependencies in package.json to install always with yarn install
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
npm install is missing modules - node.js - Stack Overflow
Is there not a way to automatically install all missing dependencies discovered as imported within the project files on build time by static...
Read more >yarn install
yarn install. Install all the dependencies listed within package.json in the local node_modules folder. The yarn.lock file ...
Read more >npm-install - npm Docs
This command installs a package and any packages that it depends on. If the package has a package-lock, or an npm shrinkwrap file,...
Read more >node-gyp - npm
Node.js native addon build tool. Latest version: 9.3.1, last published: 9 days ago. Start using node-gyp in your project by running `npm i ......
Read more >Workspaces - npm Docs
We also refer to these packages being auto-symlinked during npm install as ... This command will create the missing folders and a new...
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 FreeTop 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
Top GitHub Comments
I’m leaving this ticket opened because I want to auto yarn install in src-capacitor (also in src-cordova). Got a lot to handle currently so haven’t looked at the code, but I remember it already does this. Regardless, will investigate and improve.
Was about to make the necessary changes. But they are already there. Just forgot about them. Quasar CLI checks if {src-capacitor|src-cordova}/ node_modules is there and auto-installs if it’s not 😐