Ionic-app-scripts не найдена ошибка после установки плагина Ionic cordova в приложении-браузере - PullRequest
0 голосов
/ 16 ноября 2018

Я следую инструкциям по этой ссылке: https://ionicframework.com/docs/native/in-app-browser/

После установки плагина Cordova и Ionic native в библиотеке браузера приложений, запуск ionic cordova build android приводит к ошибке: ionic-app-scripts notнайдено.

Как я могу решить эту проблему?Я попытался удалить папку node_modules и запустить npm install, но она не сработала.

Я использую Ionic 3, Ionic CLI 4.3.1, установите последнюю версию в плагине браузера приложения.

РЕДАКТИРОВАТЬ: при установке ionic-native / in-app-browser отображается следующее:

npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed.
You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 
(node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.2.4: wanted {"os":"darwin","arch":"any"} (current{"os":"win32","arch":"x64"})
+ @ionic-native/in-app-browser@4.17.0
added 1 package from 1 contributor and audited 6219 packages in 17.843s
found 6 vulnerabilities (1 low, 5 moderate)
  run `npm audit fix` to fix them, or `npm audit` for details

Вывод ионной информации:

Ionic:

   ionic (Ionic CLI)  : 4.3.1 


Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.0.0
   Cordova Plugins       : no whitelisted plugins (0 plugins total)

System:

   NodeJS : v10.13.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.4.1
   OS     : Windows 7

Ошибка при сборке:

ionic cordova build android
> ionic-app-scripts build --target cordova --platform android
'ionic-app-scripts' is not recognized as an internal or external command,
operable program or batch file.

[INFO] Looks like @ionic/app-scripts isn't installed in this project.

       This package is required for this command to work properly.

? Install @ionic/app-scripts? Yes
> npm i -D -E @ionic/app-scripts
npm WARN deprecated cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.
npm WARN deprecated hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
npm WARN deprecated boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ @ionic/app-scripts@3.2.0
updated 1 package and audited 6219 packages in 31.422s
found 6 vulnerabilities (1 low, 5 moderate)
  run `npm audit fix` to fix them, or `npm audit` for details
> ionic-app-scripts build --target cordova --platform android
'ionic-app-scripts' is not recognized as an internal or external command,
operable program or batch file.
[ERROR] ionic-app-scripts command not found.
...