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.

Auto yarn/npm install when node_modules is missing in src-capacitor/src-cordova

See original GitHub issue

Describe 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:

  1. Create a new blank proyect
  2. Execute quasar mode add capacitor
  3. Execute quasar dev -m capacitor -T android or quasar dev -m capacitor -T ios
  4. See that it works (starts the IDE)
  5. Delete node_modules
  6. Execute yarn install
  7. Execute quasar dev -m capacitor -T android or quasar dev -m capacitor -T ios
  8. 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:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rstoenescucommented, Sep 30, 2020

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.

0reactions
rstoenescucommented, Oct 21, 2020

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 😐

Read more comments on GitHub >

github_iconTop 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 >

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