1
resposta

Erro ao executar ionic serve --lab

Olá! Ao executar o comando ionic serve --lab ocorre o erro abaixo:

Error: Cannot find module 'C:\Users\ruan.reboucas\Documents\Curso Alura\Ionic\aluracar\node_modules\@ionic\app-scripts'
Require stack:
- C:\Users\ruan.reboucas\AppData\Roaming\npm\node_modules\ionic\node_modules\@ionic\cli-utils\lib\ionic-angular\app-scripts.js
- C:\Users\ruan.reboucas\AppData\Roaming\npm\node_modules\ionic\node_modules\@ionic\cli-utils\lib\ionic-angular\serve.js
- C:\Users\ruan.reboucas\AppData\Roaming\npm\node_modules\ionic\node_modules\@ionic\cli-utils\commands\serve.js
- C:\Users\ruan.reboucas\AppData\Roaming\npm\node_modules\ionic\dist\commands\serve.js
- C:\Users\ruan.reboucas\AppData\Roaming\npm\node_modules\ionic\dist\commands\index.js
- C:\Users\ruan.reboucas\AppData\Roaming\npm\node_modules\ionic\dist\index.js
- C:\Users\ruan.reboucas\AppData\Roaming\npm\node_modules\ionic\bin\ionic
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.Module._load (internal/modules/cjs/loader.js:862:27)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (C:\Users\ruan.reboucas\AppData\Roaming\npm\node_modules\ionic\node_modules\@ionic\cli-utils\lib\ionic-angular\app-scripts.js:9:16)
    at Generator.next (<anonymous>)
    at C:\Users\ruan.reboucas\AppData\Roaming\npm\node_modules\ionic\node_modules\tslib\tslib.js:113:75
    at new Promise (<anonymous>)
    at Object.__awaiter (C:\Users\ruan.reboucas\AppData\Roaming\npm\node_modules\ionic\node_modules\tslib\tslib.js:109:16)
    at Object.importAppScripts (C:\Users\ruan.reboucas\AppData\Roaming\npm\node_modules\ionic\node_modules\@ionic\cli-utils\lib\ionic-angular\app-scripts.js:7:20)
1 resposta

Opa Ruan, tudo bem ?

Cara eu vi que sua dúvida é um pouco antiga, será que tu já resolveu ? Se sim pode compartilhar conosco ?