I m Following this documentation https://docs.moodle.org/dev/Setting_up_your_development_environment_for_Moodle_Mobile_2
C:\Users\gaura\Desktop\moodlemobile2>npm run setup
> moodlemobile@3.5.0 setup C:\Users\gaura\Desktop\moodlemobile2
> npm install && cordova prepare && gulp
> @nodert-win10/windows.applicationmodel@0.2.96 install C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.applicationmodel
> node-gyp rebuild --msvs_version=2015
C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.applicationmodel>if not defined npm_config_node_gyp (node "C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --msvs_version=2015 ) else (node "" rebuild --msvs_version=2015 )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
_nodert_generated.cpp
NodeRtUtils.cpp
CollectionsConverterUtils.cpp
OpaqueWrapper.cpp
..\NodeRtUtils.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search pat
h using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-w
in10\windows.applicationmodel\build\binding.vcxproj]
..\OpaqueWrapper.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search p
ath using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert
-win10\windows.applicationmodel\build\binding.vcxproj]
..\CollectionsConverterUtils.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assem
bly search path using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_mod
ules\@nodert-win10\windows.applicationmodel\build\binding.vcxproj]
..\_nodert_generated.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly sear
ch path using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@no
dert-win10\windows.applicationmodel\build\binding.vcxproj]
win_delay_load_hook.cc
C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc : fatal err
or C1107: could not find assembly 'Windows.winmd': please specify the assembly search path using /AI or by setting the
LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.applicationmodel\
build\binding.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\gaura\\AppData\\Roaming\\nvm\\v6.9.1\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--msvs_version=2015"
gyp ERR! cwd C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.applicationmodel
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
> @nodert-win10/windows.data.xml.dom@0.2.96 install C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.data.xml.dom
> node-gyp rebuild --msvs_version=2015
C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.data.xml.dom>if not defined npm_config_node_gyp (node "C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --msvs_version=2015 ) else (node "" rebuild --msvs_version=2015 )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
_nodert_generated.cpp
NodeRtUtils.cpp
OpaqueWrapper.cpp
CollectionsConverterUtils.cpp
..\NodeRtUtils.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search pat
h using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-w
in10\windows.data.xml.dom\build\binding.vcxproj]
..\OpaqueWrapper.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search p
ath using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert
-win10\windows.data.xml.dom\build\binding.vcxproj]
..\_nodert_generated.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly sear
ch path using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@no
dert-win10\windows.data.xml.dom\build\binding.vcxproj]
..\CollectionsConverterUtils.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assem
bly search path using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_mod
ules\@nodert-win10\windows.data.xml.dom\build\binding.vcxproj]
win_delay_load_hook.cc
C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc : fatal err
or C1107: could not find assembly 'Windows.winmd': please specify the assembly search path using /AI or by setting the
LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.data.xml.dom\buil
d\binding.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\gaura\\AppData\\Roaming\\nvm\\v6.9.1\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--msvs_version=2015"
gyp ERR! cwd C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.data.xml.dom
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
> @nodert-win10/windows.foundation@0.2.96 install C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.foundation
> node-gyp rebuild --msvs_version=2015
C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.foundation>if not defined npm_config_node_gyp (node "C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --msvs_version=2015 ) else (node "" rebuild --msvs_version=2015 )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
_nodert_generated.cpp
NodeRtUtils.cpp
OpaqueWrapper.cpp
CollectionsConverterUtils.cpp
..\_nodert_generated.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly sear
ch path using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@no
dert-win10\windows.foundation\build\binding.vcxproj]
..\NodeRtUtils.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search pat
h using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-w
in10\windows.foundation\build\binding.vcxproj]
..\OpaqueWrapper.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search p
ath using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert
-win10\windows.foundation\build\binding.vcxproj]
win_delay_load_hook.cc
..\CollectionsConverterUtils.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assem
bly search path using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_mod
ules\@nodert-win10\windows.foundation\build\binding.vcxproj]
C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc : fatal err
or C1107: could not find assembly 'Windows.winmd': please specify the assembly search path using /AI or by setting the
LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.foundation\build\
binding.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\gaura\\AppData\\Roaming\\nvm\\v6.9.1\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--msvs_version=2015"
gyp ERR! cwd C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.foundation
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
> @nodert-win10/windows.ui.notifications@0.2.96 install C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.ui.notifications
> node-gyp rebuild --msvs_version=2015
C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.ui.notifications>if not defined npm_config_node_gyp (node "C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --msvs_version=2015 ) else (node "" rebuild --msvs_version=2015 )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
_nodert_generated.cpp
NodeRtUtils.cpp
OpaqueWrapper.cpp
CollectionsConverterUtils.cpp
..\CollectionsConverterUtils.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assem
bly search path using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_mod
ules\@nodert-win10\windows.ui.notifications\build\binding.vcxproj]
..\_nodert_generated.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly sear
ch path using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@no
dert-win10\windows.ui.notifications\build\binding.vcxproj]
..\OpaqueWrapper.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search p
ath using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert
-win10\windows.ui.notifications\build\binding.vcxproj]
..\NodeRtUtils.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search pat
h using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-w
in10\windows.ui.notifications\build\binding.vcxproj]
win_delay_load_hook.cc
C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc : fatal err
or C1107: could not find assembly 'Windows.winmd': please specify the assembly search path using /AI or by setting the
LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.ui.notifications\
build\binding.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\gaura\\AppData\\Roaming\\nvm\\v6.9.1\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--msvs_version=2015"
gyp ERR! cwd C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.ui.notifications
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
> @nodert-win10/windows.ui.startscreen@0.2.96 install C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.ui.startscreen
> node-gyp rebuild --msvs_version=2015
C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.ui.startscreen>if not defined npm_config_node_gyp (node "C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --msvs_version=2015 ) else (node "" rebuild --msvs_version=2015 )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
_nodert_generated.cpp
NodeRtUtils.cpp
OpaqueWrapper.cpp
CollectionsConverterUtils.cpp
..\CollectionsConverterUtils.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assem
bly search path using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_mod
ules\@nodert-win10\windows.ui.startscreen\build\binding.vcxproj]
..\_nodert_generated.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly sear
ch path using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@no
dert-win10\windows.ui.startscreen\build\binding.vcxproj]
..\OpaqueWrapper.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search p
ath using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert
-win10\windows.ui.startscreen\build\binding.vcxproj]
..\NodeRtUtils.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search pat
h using /AI or by setting the LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-w
in10\windows.ui.startscreen\build\binding.vcxproj]
win_delay_load_hook.cc
C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc : fatal err
or C1107: could not find assembly 'Windows.winmd': please specify the assembly search path using /AI or by setting the
LIBPATH environment variable [C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.ui.startscreen\bu
ild\binding.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\gaura\AppData\Roaming\nvm\v6.9.1\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\gaura\\AppData\\Roaming\\nvm\\v6.9.1\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--msvs_version=2015"
gyp ERR! cwd C:\Users\gaura\Desktop\moodlemobile2\node_modules\@nodert-win10\windows.ui.startscreen
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\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"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-linux@^1.1.0 (node_modules\7zip-bin\node_modules\7zip-bin-linux):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-linux@1.3.1: wanted {"os":"linux","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-mac@^1.0.1 (node_modules\7zip-bin\node_modules\7zip-bin-mac):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-mac@1.0.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.2 (node_modules\watchpack\node_modules\chokidar\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"})
npm WARN @angular/animations@5.2.11 requires a peer of @angular/core@5.2.11 but none was installed.
npm WARN electron-builder-squirrel-windows@19.56.0 requires a peer of electron-builder-lib@~19.56.0 but none was installed.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nodert-win10/windows.applicationmodel@0.2.96 (node_modules\@nodert-win10\windows.applicationmodel):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nodert-win10/windows.applicationmodel@0.2.96 install: `node-gyp rebuild --msvs_version=2015`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nodert-win10/windows.data.xml.dom@0.2.96 (node_modules\@nodert-win10\windows.data.xml.dom):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nodert-win10/windows.data.xml.dom@0.2.96 install: `node-gyp rebuild --msvs_version=2015`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nodert-win10/windows.foundation@0.2.96 (node_modules\@nodert-win10\windows.foundation):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nodert-win10/windows.foundation@0.2.96 install: `node-gyp rebuild --msvs_version=2015`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nodert-win10/windows.ui.notifications@0.2.96 (node_modules\@nodert-win10\windows.ui.notifications):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nodert-win10/windows.ui.notifications@0.2.96 install: `node-gyp rebuild --msvs_version=2015`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nodert-win10/windows.ui.startscreen@0.2.96 (node_modules\@nodert-win10\windows.ui.startscreen):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nodert-win10/windows.ui.startscreen@0.2.96 install: `node-gyp rebuild --msvs_version=2015`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
Discovered platform "android@6.1.2" in config.xml. Adding it to the project
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: com.moodle.moodlemobile
Name: Moodle_Mobile
Activity: MainActivity
Android target: android-25
Subproject Path: CordovaLib
Android project created with cordova-android@6.1.2
Discovered platform "ios@4.3.1" in config.xml. Adding it to the project
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms\ios
Package: com.moodle.moodlemobile
Name: Moodle Mobile
iOS project created with cordova-ios@4.3.1
Discovered plugin "cordova-plugin-file" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-file@4.3.3" via npm
Installing "cordova-plugin-file" for android
Fetching plugin "cordova-plugin-compat" via npm
Installing "cordova-plugin-compat" for android
The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.
If this is a new application no changes are required.
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
to config.xml in order for the application to find previously stored files.
Installing "cordova-plugin-file" for ios
Installing "cordova-plugin-compat" for ios
Discovered plugin "cordova-plugin-file-transfer" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-file-transfer@1.6.3" via npm
npm WARN deprecated cordova-plugin-file-transfer@1.6.3: This plugin has been deprecated
Installing "cordova-plugin-file-transfer" for android
Dependent plugin "cordova-plugin-file" already installed on android.
Installing "cordova-plugin-file-transfer" for ios
Dependent plugin "cordova-plugin-file" already installed on ios.
Discovered plugin "cordova-plugin-camera" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-camera@2.4.1" via npm
Installing "cordova-plugin-camera" for android
Dependent plugin "cordova-plugin-compat" already installed on android.
Subproject Path: CordovaLib
Installing "cordova-plugin-camera" for ios
Dependent plugin "cordova-plugin-compat" already installed on ios.
Discovered plugin "cordova-plugin-media-capture" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-media-capture@1.4.3" via npm
Installing "cordova-plugin-media-capture" for android
Dependent plugin "cordova-plugin-file" already installed on android.
Dependent plugin "cordova-plugin-compat" already installed on android.
Installing "cordova-plugin-media-capture" for ios
Dependent plugin "cordova-plugin-file" already installed on ios.
Dependent plugin "cordova-plugin-compat" already installed on ios.
Discovered plugin "cordova-plugin-device" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-device@1.1.6" via npm
Installing "cordova-plugin-device" for android
Installing "cordova-plugin-device" for ios
Discovered plugin "cordova-plugin-globalization" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-globalization@1.0.7" via npm
Installing "cordova-plugin-globalization" for android
Installing "cordova-plugin-globalization" for ios
Discovered plugin "cordova-plugin-inappbrowser" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-inappbrowser@1.7.1" via npm
Installing "cordova-plugin-inappbrowser" for android
Installing "cordova-plugin-inappbrowser" for ios
Discovered plugin "cordova-plugin-network-information" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-network-information@1.3.3" via npm
Installing "cordova-plugin-network-information" for android
Installing "cordova-plugin-network-information" for ios
Discovered plugin "cordova-plugin-statusbar" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-statusbar@2.2.3" via npm
Installing "cordova-plugin-statusbar" for android
Installing "cordova-plugin-statusbar" for ios
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-whitelist@1.3.2" via npm
Installing "cordova-plugin-whitelist" for android
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
Installing "cordova-plugin-whitelist" for ios
Discovered plugin "cordova-plugin-splashscreen" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-splashscreen@4.0.3" via npm
Installing "cordova-plugin-splashscreen" for android
Installing "cordova-plugin-splashscreen" for ios
Discovered plugin "cordova-clipboard" in config.xml. Adding it to the project
Fetching plugin "cordova-clipboard@1.1.0" via npm
Installing "cordova-clipboard" for android
Installing "cordova-clipboard" for ios
Discovered plugin "nl.kingsquare.cordova.background-audio" in config.xml. Adding it to the project
Fetching plugin "nl.kingsquare.cordova.background-audio@1.0.1" via npm
Installing "nl.kingsquare.cordova.background-audio" for android
Installing "nl.kingsquare.cordova.background-audio" for ios
Discovered plugin "phonegap-plugin-push" in config.xml. Adding it to the project
Fetching plugin "phonegap-plugin-push@1.9.2" via npm
Installing "phonegap-plugin-push" for android
Subproject Path: CordovaLib
Installing "phonegap-plugin-push" for ios
Failed to install 'phonegap-plugin-push':undefined
Failed to restore plugin "phonegap-plugin-push" from config.xml. You might need to try adding it again. Error: CocoaPods was not found. Please install version 1.0.1 or greater from https://cocoapods.org/
Discovered plugin "cordova-plugin-customurlscheme" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-customurlscheme@4.3.0" via npm
Installing "cordova-plugin-customurlscheme" for android
Installing "cordova-plugin-customurlscheme" for ios
Discovered plugin "ionic-plugin-keyboard" in config.xml. Adding it to the project
Fetching plugin "ionic-plugin-keyboard@2.2.1" via npm
Installing "ionic-plugin-keyboard" for android
Installing "ionic-plugin-keyboard" for ios
Discovered plugin "cordova-plugin-zip" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-zip@3.1.0" via npm
Installing "cordova-plugin-zip" for android
Dependent plugin "cordova-plugin-file" already installed on android.
Installing "cordova-plugin-zip" for ios
Dependent plugin "cordova-plugin-file" already installed on ios.
Discovered plugin "cordova-plugin-local-notifications-mm" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-local-notifications-mm" via npm
Installing "cordova-plugin-local-notifications-mm" for android
Dependent plugin "cordova-plugin-device" already installed on android.
Fetching plugin "cordova-plugin-app-event" via npm
Installing "cordova-plugin-app-event" for android
Subproject Path: CordovaLib
Your support is needed. If you use the local-notification plugin please support us in order to ensure further development.
https://github.com/katzer/cordova-plugin-local-notifications#supporting
Thank you!
Installing "cordova-plugin-local-notifications-mm" for ios
Dependent plugin "cordova-plugin-device" already installed on ios.
Installing "cordova-plugin-app-event" for ios
Your support is needed. If you use the local-notification plugin please support us in order to ensure further development.
https://github.com/katzer/cordova-plugin-local-notifications#supporting
Thank you!
Discovered plugin "cordova-sqlite-storage" in config.xml. Adding it to the project
Fetching plugin "cordova-sqlite-storage@2.0.4" via npm
Installing "cordova-sqlite-storage" for android
installing external dependencies via npm
npm install of external dependencies ok
Installing "cordova-sqlite-storage" for ios
installing external dependencies via npm
npm install of external dependencies ok
Discovered plugin "cordova-plugin-file-opener2" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-file-opener2@~2.0.19" via npm
Installing "cordova-plugin-file-opener2" for android
Subproject Path: CordovaLib
Installing "cordova-plugin-file-opener2" for ios
Discovered plugin "com-darryncampbell-cordova-plugin-intent" in config.xml. Adding it to the project
Fetching plugin "com-darryncampbell-cordova-plugin-intent@~1.0.2" via npm
Installing "com-darryncampbell-cordova-plugin-intent" for android
Subproject Path: CordovaLib
Installing "com-darryncampbell-cordova-plugin-intent" for ios
[19:35:00] Using gulpfile ~\Desktop\moodlemobile2\gulpfile.js
[19:35:00] Starting 'lang'...
[19:35:00] Starting 'config'...
[19:35:05] Finished 'config' after 4.03 s
[19:35:05] Finished 'lang' after 5.02 s
[19:35:05] Starting 'default'...
[19:35:05] Finished 'default' after 49 μs
C:\Users\gaura\Desktop\moodlemobile2>ionic serve -b
> npm run ionic:watch:before
> moodlemobile@3.5.0 ionic:watch:before C:\Users\gaura\Desktop\moodlemobile2
> gulp
[19:35:29]
Using gulpfile ~\Desktop\moodlemobile2\gulpfile.js
[19:35:29]
Starting 'lang'...
[19:35:29]
Starting 'config'...
[19:35:35]
Finished 'config' after 5.91 s
[19:35:35]
Finished 'lang' after 6.43 s
[19:35:35] Starting 'default'...
[19:35:35] Finished 'default' after 45 μs
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser -
Ctrl+C to cancel
[19:36:12] watch started ...
[19:36:12] build dev started ...
[19:36:13] clean started ...
[19:36:13] clean finished in 16 ms
[19:36:13] copy started ...
[19:36:21] copy finished in 8.13 s
[19:36:21] deeplinks started ...
[19:36:25] deeplinks finished in 4.08 s
[19:36:25] transpile started ...
[19:37:09] typescript: ...sers/gaura/Desktop/moodlemobile2/src/core/emulator/classes/inappbrowserobject.ts, line: 40
Cannot find name 'require'.
L39: width = display.workArea.width || width;
L40: height = display.workArea.height || height;
[19:37:09] typescript: ...sers/gaura/Desktop/moodlemobile2/src/core/emulator/classes/inappbrowserobject.ts, line: 41
Cannot find name 'require'.
L40: height = display.workArea.height || height;
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/emulator.module.ts, line: 212
Cannot find name 'require'.
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/badge.ts, line: 47
Cannot find name 'require'.
L47: * @returns {Promise<any>}
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/badge.ts, line: 69
Cannot find name 'require'.
L69: increase(increaseBy: number): Promise<any> {
L70: return Promise.reject('increase is only supported in mobile devices');
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/clipboard.ts, line: 33
Cannot find name 'require'.
L32: * @param {string} text The text to copy.
L33: * @return {Promise<any>} Promise resolved when copied.
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file-opener.ts, line: 51
Cannot find name 'require'.
L50: * @param {string} packageId Package ID.
L51: * @returns {Promise<any>} Promise resolved when done.
[19:37:09] typescript: ...:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file-transfer.ts, line: 142
Cannot find name 'Buffer'.
L141: * This code is extracted from Cordova FileTransfer plugin.
L143: * @param {string} urlString The URL to get the credentials from.
[19:37:09] typescript: ...:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file-transfer.ts, line: 236
Cannot find name 'FileUploadOptions'.
L235: options.headers = options.headers || {};
L236: options.headers[basicAuthHeader.name] = basicAuthHeader.value;
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 182
Cannot find name 'FileWriter'.
* @param {any} err Error.
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 183
Cannot find name 'FileWriter'.
L182: * @param {any} err Error.
L184: private fillErrorMessageMock(err: any): void {
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 214
Cannot find name 'Flags'.
L213: reject(xc);
L215: });
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 239
Cannot find name 'Flags'.
L238: });
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 262
Property 'requestFileSystem' does not exist on type 'Window'.
L261: calculateByRequest(size * ratio, ratio).then(resolve);
L262: }, () => {
L263: resolve(size / ratio);
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 268
Property 'requestFileSystem' does not exist on type 'Window'.
L268: // General calculation, base 1MB and increasing factor 1.3.
L269: calculateByRequest(1048576, 1.3).then((size: number) => {
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 268
Cannot find name 'LocalFileSystem'.
L268: // General calculation, base 1MB and increasing factor 1.3.
L269: calculateByRequest(1048576, 1.3).then((size: number) => {
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 336
Cannot find name 'require'.
L335: basePath = this.textUtils.concatenatePaths(basePath.replace(/\\/g, '/'), CoreConfigConstants.app_id) + '/';
L337: // Create the folder if needed.
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 337
Cannot find name 'require'.
L337: // Create the folder if needed.
L338: fs.mkdir(basePath, (e) => {
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 364
Property 'requestFileSystem' does not exist on type 'Window'.
L363: * @param {Entry} srce The Entry to copy.
L364: * @param {DirectoryEntry} destDir The directory where to move the file/dir.
L365: * @param {string} newName New name of the file/dir.
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 364
Cannot find name 'LocalFileSystem'.
L363: * @param {Entry} srce The Entry to copy.
L364: * @param {DirectoryEntry} destDir The directory where to move the file/dir.
L365: * @param {string} newName New name of the file/dir.
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 487
Cannot find name 'DirectoryReader'.
L487: * @param {string} path Base FileSystem.
L488: * @param {string} file Name of file, relative to path.
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 620
Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
L620: * Remove a directory and all its contents.
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 657
Cannot find name 'FileWriter'.
L656: writer.write(data);
});
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/file.ts, line: 737
Cannot find name 'FileWriter'.
L736: writer.onwrite = (): void => {
L737: if (writtenSize < data.size) {
L738: writeNextChunk();
[19:37:09] typescript: ...:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/globalization.ts, line: 40
Cannot find name 'require'.
L39: * @return {Promise<{value: string}>} Promise resolved with an object with the language string.
L41: getLocaleName(): Promise<{ value: string }> {
[19:37:09] typescript: ...:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/globalization.ts, line: 60
Cannot find name 'GlobalizationError'.
[19:37:09] typescript: ...s/gaura/Desktop/moodlemobile2/src/core/emulator/providers/local-notifications.ts, line: 473
Cannot find name 'require'.
L472: delete notification.triggered;
L473: this.scheduled[notification.id] = {
L474: notification: notification
[19:37:09] typescript: ...s/gaura/Desktop/moodlemobile2/src/core/emulator/providers/local-notifications.ts, line: 546
Cannot find name 'require'.
L546: this.observers[eventName].push(callback);
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/push.ts, line: 119
Cannot find name 'require'.
L118: * successHandler gets called with an integer which is the current badge count
L120: getApplicationIconBadgeNumber(): Promise<number> {
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/core/emulator/providers/push.ts, line: 140
Cannot find name 'require'.
L140: finish(id?: string): Promise<any> {
L141: return Promise.reject('finish is only supported in mobile devices');
[19:37:09] typescript: ...s/gaura/Desktop/moodlemobile2/src/core/settings/pages/space-usage/space-usage.ts, line: 163
Cannot find name 'FileError'.
L162: // Ignore cancelled confirmation modal.
: });
L164: });
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/providers/app.ts, line: 162
Cannot find name 'require'.
L161: return false;
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/providers/app.ts, line: 179
Cannot find name 'require'.
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/providers/app.ts, line: 209
Cannot find name 'Connection'.
isNetworkAccessLimited(): boolean {
L210: const type = this.network.type;
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/providers/app.ts, line: 209
Cannot find name 'Connection'.
isNetworkAccessLimited(): boolean {
L210: const type = this.network.type;
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/providers/app.ts, line: 230
Cannot find name 'Connection'.
L231: try {
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/providers/app.ts, line: 230
Cannot find name 'Connection'.
L231: try {
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/providers/app.ts, line: 230
Cannot find name 'Connection'.
L231: try {
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/providers/app.ts, line: 230
Cannot find name 'Connection'.
L231: try {
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/providers/app.ts, line: 246
Cannot find name 'require'.
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/providers/file.ts, line: 102
Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
L101: return this.file.resolveLocalFilesystemUrl(this.addBasePathIfNeeded(path));
y) => {
L103: return <FileEntry> entry;
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/providers/file.ts, line: 769
Cannot find name 'Entry'.
L768: * @param {string} path Path to the file/dir.
L769: * @param {boolean} [isDir] True if directory, false if file.
L770: * @return {Promise<any>} Promise resolved with metadata.
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/providers/utils/utils.ts, line: 193
Cannot find name 'require'.
L192: // Clone the array and all the entries.
L193: const newArray = [];
L194: for (let i = 0; i < source.length; i++) {
[19:37:09] typescript: C:/Users/gaura/Desktop/moodlemobile2/src/providers/utils/utils.ts, line: 782
Cannot find name 'require'.
L782: * @param {string} url The URL of the file.
L783: * @return {Promise<void>} Promise resolved when opened.
[19:37:09] dev server running: http://localhost:8100/
[OK] Development server running!
Local: http://localhost:8100
External: http://192.168.1.101:8100
DevApp: moodlemobile@8100 on DESKTOP-DVCQ0DR
{ Error: A watch configured to watch the following paths failed to start. It likely that a file referenced does not exist: C:\Users\gaura\Desktop\moodlemobile2\src\assets\**\*, C:\Users\gaura\Desktop\moodlemobile2\src\index.html, C:\Users\gaura\Desktop\moodlemobile2\src\manifest.json, C:\Users\gaura\Desktop\moodlemobile2\src\service-worker.js, C:\Users\gaura\Desktop\moodlemobile2\node_modules\ionicons\dist\fonts\**\*, C:\Users\gaura\Desktop\moodlemobile2\node_modules\ionic-angular\fonts\**\*, C:\Users\gaura\Desktop\moodlemobile2\node_modules\ionic-angular\polyfills\polyfills.js, C:\Users\gaura\Desktop\moodlemobile2\node_modules\sw-toolbox\sw-toolbox.js, C:\Users\gaura\Desktop\moodlemobile2\node_modules\font-awesome\fonts\**\*
at BuildError.Error (native)
at new BuildError (C:\Users\gaura\Desktop\moodlemobile2\node_modules\@ionic\app-scripts\dist\util\errors.js:16:28)
at Timeout._onTimeout (C:\Users\gaura\Desktop\moodlemobile2\node_modules\@ionic\app-scripts\dist\watch.js:71:20)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5) hasBeenLogged: false, isFatal: false }