Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 228529 articles
Browse latest View live

Failed to load resource: net::ERR_CLEARTEXT_NOT_PERMITTED

$
0
0

To solve this error try use HTTPS on you webservice.


Npm install failing

$
0
0

i just clown a project from my bitbucket, and did npm install, and got the error below, be trying to figure out whats wrong, all my packages are up to date

c:\users\longbridge\documents\ionic2\fullbom\node_modules\leveldown\src\leveldown.h(17): error C2661: ‘v8::Value::ToObject’: no overloaded function takes 0 arguments (
compiling source file …\src\leveldown_async.cc) [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
c:\users\longbridge\documents\ionic2\fullbom\node_modules\leveldown\src\leveldown.h(18): error C2661: ‘v8::Value::ToObject’: no overloaded function takes 0 arguments (
compiling source file …\src\leveldown_async.cc) [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
c:\users\longbridge\documents\ionic2\fullbom\node_modules\leveldown\src\leveldown.h(19): error C2661: ‘v8::Value::ToString’: no overloaded function takes 0 arguments (
compiling source file …\src\leveldown_async.cc) [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
c:\users\longbridge\documents\ionic2\fullbom\node_modules\leveldown\src\leveldown.h(19): error C2227: left of ‘->Utf8Length’ must point to class/struct/union/generic t
ype (compiling source file …\src\leveldown_async.cc) [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
c:\users\longbridge\documents\ionic2\fullbom\node_modules\leveldown\src\leveldown.h(30): warning C4996: ‘v8::Object::Get’: was declared deprecated (compiling source fi
le …\src\leveldown_async.cc) [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
c:\users\longbridge\appdata\local\node-gyp\cache\12.13.0\include\node\v8.h(3457): note: see declaration of ‘v8::Object::Get’ (compiling source file …\src\leveldown_
async.cc)
…\src\iterator_async.cc(64): warning C4996: ‘v8::Object::Set’: was declared deprecated [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leve
ldown.vcxproj]
c:\users\longbridge\appdata\local\node-gyp\cache\12.13.0\include\node\v8.h(3403): note: see declaration of ‘v8::Object::Set’
…\src\iterator_async.cc(65): warning C4996: ‘v8::Object::Set’: was declared deprecated [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leve
ldown.vcxproj]
c:\users\longbridge\appdata\local\node-gyp\cache\12.13.0\include\node\v8.h(3403): note: see declaration of ‘v8::Object::Set’
c:\users\longbridge\documents\ionic2\fullbom\node_modules\leveldown\src\common.h(19): error C2661: ‘v8::Object::Has’: no overloaded function takes 1 arguments (compili
ng source file …\src\iterator.cc) [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
c:\users\longbridge\documents\ionic2\fullbom\node_modules\leveldown\src\common.h(20): error C2661: ‘v8::Value::BooleanValue’: no overloaded function takes 0 arguments
(compiling source file …\src\iterator.cc) [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
c:\users\longbridge\documents\ionic2\fullbom\node_modules\leveldown\src\common.h(30): error C2661: ‘v8::Object::Has’: no overloaded function takes 1 arguments (compili
ng source file …\src\iterator.cc) [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
c:\users\longbridge\documents\ionic2\fullbom\node_modules\leveldown\src\common.h(32): error C2660: ‘v8::Value::Uint32Value’: function does not take 0 arguments (compil
ing source file …\src\iterator.cc) [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
…\src\leveldown.cc(58): error C2660: ‘v8::FunctionTemplate::GetFunction’: function does not take 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_module
s\leveldown\build\leveldown.vcxproj]
…\src\leveldown.cc(62): error C2660: ‘v8::FunctionTemplate::GetFunction’: function does not take 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_module
s\leveldown\build\leveldown.vcxproj]
…\src\leveldown.cc(63): error C2661: ‘v8::Object::Set’: no overloaded function takes 1 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
build\leveldown.vcxproj]
…\src\leveldown.cc(67): error C2660: ‘v8::FunctionTemplate::GetFunction’: function does not take 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_module
s\leveldown\build\leveldown.vcxproj]
…\src\leveldown.cc(68): error C2661: ‘v8::Object::Set’: no overloaded function takes 1 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
build\leveldown.vcxproj]
…\src\leveldown.cc(70): warning C4996: ‘v8::Object::Set’: was declared deprecated [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown
.vcxproj]
c:\users\longbridge\appdata\local\node-gyp\cache\12.13.0\include\node\v8.h(3403): note: see declaration of ‘v8::Object::Set’
win_delay_load_hook.cc
…\src\iterator.cc(274): error C2661: ‘v8::Value::ToObject’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(274): error C2228: left of ‘.IsEmpty’ must have class/struct/unionc:\users\longbridge\documents\ionic2\fullbom\node_modules\leveldown\src\database.h
(31): warning C4996: ‘v8::Object::Set’: was declared deprecated (compiling source file …\src\leveldown_async.cc) [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_mo
dules\leveldown\build\leveldown.vcxproj]

…\src\iterator.cc(274): error C2660: ‘memcpy’: function does not take 2 argumentsc:\users\longbridge\appdata\local\node-gyp\cache\12.13.0\include\node\v8.h(3403): not
e: see declaration of ‘v8::Object::Set’ (compiling source file …\src\leveldown_async.cc) [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\le
veldown.vcxproj]

…\src\iterator.cc(274): error C2661: ‘v8::Value::ToString’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(274): error C2660: ‘v8::String::Utf8Length’: function does not take 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
\build\leveldown.vcxproj]
…\src\iterator.cc(274): error C2664: ‘int v8::String::WriteUtf8(v8::Isolate *,char *,int,int *,int) const’: cannot convert argument 1 from ‘char *’ to ‘v8::Isolate *’
[C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
…\src\iterator.cc(274): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\src\iterator.cc(406): error C2660: ‘v8::FunctionTemplate::GetFunction’: function does not take 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_module
s\leveldown\build\leveldown.vcxproj]
…\src\iterator.cc(409): error C2660: ‘v8::FunctionTemplate::GetFunction’: function does not take 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_module
s\leveldown\build\leveldown.vcxproj]
…\src\iterator.cc(420): error C2661: ‘v8::Value::ToObject’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(451): error C2661: ‘v8::Object::Has’: no overloaded function takes 1 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
build\leveldown.vcxproj]
…\src\iterator.cc(459): error C2661: ‘v8::Value::ToObject’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(459): error C2228: left of ‘.IsEmpty’ must have class/struct/union [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveld
own.vcxproj]
…\src\iterator.cc(459): error C2660: ‘memcpy’: function does not take 2 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown
.vcxproj]
…\src\iterator.cc(459): error C2661: ‘v8::Value::ToString’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(459): error C2660: ‘v8::String::Utf8Length’: function does not take 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
\build\leveldown.vcxproj]
…\src\iterator.cc(459): error C2664: ‘int v8::String::WriteUtf8(v8::Isolate *,char *,int,int *,int) const’: cannot convert argument 1 from ‘char *’ to ‘v8::Isolate *’
[C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
…\src\iterator.cc(459): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\src\iterator.cc(465): error C2661: ‘v8::Object::Has’: no overloaded function takes 1 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
build\leveldown.vcxproj]
…\src\iterator.cc(473): error C2661: ‘v8::Value::ToObject’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(473): error C2228: left of ‘.IsEmpty’ must have class/struct/union [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveld
own.vcxproj]
…\src\iterator.cc(473): error C2660: ‘memcpy’: function does not take 2 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown
.vcxproj]
…\src\iterator.cc(473): error C2661: ‘v8::Value::ToString’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(473): error C2660: ‘v8::String::Utf8Length’: function does not take 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
\build\leveldown.vcxproj]
…\src\iterator.cc(473): error C2664: ‘int v8::String::WriteUtf8(v8::Isolate *,char *,int,int *,int) const’: cannot convert argument 1 from ‘char *’ to ‘v8::Isolate *’
[C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
…\src\iterator.cc(473): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\src\iterator.cc(479): error C2661: ‘v8::Object::Has’: no overloaded function takes 1 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
build\leveldown.vcxproj]
…\src\iterator.cc(484): error C2661: ‘v8::Object::Has’: no overloaded function takes 1 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
build\leveldown.vcxproj]
…\src\iterator.cc(489): error C2661: ‘v8::Object::Has’: no overloaded function takes 1 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
build\leveldown.vcxproj]
…\src\iterator.cc(497): error C2661: ‘v8::Value::ToObject’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(497): error C2228: left of ‘.IsEmpty’ must have class/struct/union [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveld
own.vcxproj]
…\src\iterator.cc(497): error C2660: ‘memcpy’: function does not take 2 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown
.vcxproj]
…\src\iterator.cc(497): error C2661: ‘v8::Value::ToString’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(497): error C2660: ‘v8::String::Utf8Length’: function does not take 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
\build\leveldown.vcxproj]
…\src\iterator.cc(497): error C2664: ‘int v8::String::WriteUtf8(v8::Isolate *,char *,int,int *,int) const’: cannot convert argument 1 from ‘char *’ to ‘v8::Isolate *’
[C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
…\src\iterator.cc(497): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\src\iterator.cc(512): error C2661: ‘v8::Object::Has’: no overloaded function takes 1 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
build\leveldown.vcxproj]
…\src\iterator.cc(520): error C2661: ‘v8::Value::ToObject’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(520): error C2228: left of ‘.IsEmpty’ must have class/struct/union [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveld
own.vcxproj]
…\src\iterator.cc(520): error C2660: ‘memcpy’: function does not take 2 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown
.vcxproj]
…\src\iterator.cc(520): error C2661: ‘v8::Value::ToString’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(520): error C2660: ‘v8::String::Utf8Length’: function does not take 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
\build\leveldown.vcxproj]
…\src\iterator.cc(520): error C2664: ‘int v8::String::WriteUtf8(v8::Isolate *,char *,int,int *,int) const’: cannot convert argument 1 from ‘char *’ to ‘v8::Isolate *’
[C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
…\src\iterator.cc(520): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\src\iterator.cc(535): error C2661: ‘v8::Object::Has’: no overloaded function takes 1 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
build\leveldown.vcxproj]
…\src\iterator.cc(543): error C2661: ‘v8::Value::ToObject’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(543): error C2228: left of ‘.IsEmpty’ must have class/struct/union [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveld
own.vcxproj]
…\src\iterator.cc(543): error C2660: ‘memcpy’: function does not take 2 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown
.vcxproj]
…\src\iterator.cc(543): error C2661: ‘v8::Value::ToString’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(543): error C2660: ‘v8::String::Utf8Length’: function does not take 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
\build\leveldown.vcxproj]
…\src\iterator.cc(543): error C2664: ‘int v8::String::WriteUtf8(v8::Isolate *,char *,int,int *,int) const’: cannot convert argument 1 from ‘char *’ to ‘v8::Isolate *’
[C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
…\src\iterator.cc(543): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\src\iterator.cc(558): error C2661: ‘v8::Object::Has’: no overloaded function takes 1 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
build\leveldown.vcxproj]
…\src\iterator.cc(566): error C2661: ‘v8::Value::ToObject’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(566): error C2228: left of ‘.IsEmpty’ must have class/struct/union [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveld
own.vcxproj]
…\src\iterator.cc(566): error C2660: ‘memcpy’: function does not take 2 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown
.vcxproj]
…\src\iterator.cc(566): error C2661: ‘v8::Value::ToString’: no overloaded function takes 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveld
own\build\leveldown.vcxproj]
…\src\iterator.cc(566): error C2660: ‘v8::String::Utf8Length’: function does not take 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
\build\leveldown.vcxproj]
…\src\iterator.cc(566): error C2664: ‘int v8::String::WriteUtf8(v8::Isolate *,char *,int,int *,int) const’: cannot convert argument 1 from ‘char *’ to ‘v8::Isolate *’
[C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown\build\leveldown.vcxproj]
…\src\iterator.cc(566): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\src\iterator.cc(591): error C2660: ‘v8::Value::Int32Value’: function does not take 0 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
build\leveldown.vcxproj]
…\src\iterator.cc(606): error C2661: ‘leveldown::Iterator::Iterator’: no overloaded function takes 15 arguments [C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_mod
ules\leveldown\build\leveldown.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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\LONGBRIDGE\Documents\ionic2\fullbom\node_modules\leveldown
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN @angular/compiler-cli@7.2.9 requires a peer of @angular/compiler@7.2.9 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/compiler-cli@7.2.9 requires a peer of typescript@>=3.1.1 <3.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/http@4.20.0 requires a peer of @ionic-native/core@^4.11.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/http@4.20.0 requires a peer of rxjs@^5.5.11 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\watchpack\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules@ionic\app-scripts\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! leveldown@3.0.0 install: prebuild-install || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the leveldown@3.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\LONGBRIDGE\AppData\Roaming\npm-cache_logs\2020-01-17T14_20_44_624Z-debug.log

Where to temporary store a variable so that it can not be deleted when you refresh a page

$
0
0

I’m doing a school project. I’m beginner to Ionic + Angular.

Once a user logs in my PWA, the user’s email is assigned as a variable in a .service file called ‘CRUD.service.ts’. I use it so that whenever a logged in user go to any page, I have a record of their email.

But the problem is that when the user refreshes the page in the browser or navigate back and forward, the variables in my ‘CRUD.service.ts’ are cleared so I do not have record of their email anymore.

I need it so that even if they refresh the page, their email is still stored somewhere but it will only be cleared when they logout.

Tutorial/guide to build for Ionic-React-Electron app

$
0
0

those are framework specific problems, not Capacitor problems, Capacitor knows nothing about your project or framework

Where to temporary store a variable so that it can not be deleted when you refresh a page

$
0
0

Hi @jefredallan!
You may use Native Storage to do that.
So, you do a setItem and a getItem, to store and retrieve the data you want.

import { NativeStorage } from '@ionic-enterprise/nativestorage/ngx';

constructor(private nativeStorage: NativeStorage) { }

...

this.nativeStorage.setItem('myitem', {property: 'value', anotherProperty: 'anotherValue'})
  .then(
    () => console.log('Stored item!'),
    error => console.error('Error storing item', error)
  );

this.nativeStorage.getItem('myitem')
  .then(
    data => console.log(data),
    error => console.error(error)
  );

You can see the Docs:

How to handle: invalid views to insert

$
0
0

No, I am just ignoring the error

Can't build after installing @ionic-native/firebase-analytics

$
0
0

Hey, @ketanambekar, thanks for your reply.
Sadly, it didn’t work for me. cordova-plugin-androidx and cordova-plugin-androidx-adapter does not work with capacitor. I ended up manually specifying
implementation 'com.google.firebase:firebase-analytics:16.0.6'
in my android\app\build.gradle and using this plugin https://github.com/stewwan/capacitor-analytics

It is working, I’m ok with that. I wish I could use the Ionic native plugin with the latest version of firebase-analytics

Npm install failing

$
0
0

Hi @mellajones!
It seems me that the Node version of the project is different of the Node version you have installed in you environment. Discover it by the command:

node -v

Try to use NVM to manage different Node versions.


[iOS] App name of two words showing as one word (both words connected)

$
0
0

Hi @alaswer!

The name of the app is determined on the config.xml file.
You can check the tags:

<name>Like Name</name>

LaunchNavigator is not recognizing google maps on iOS

$
0
0

Using Ionic 4 with Capacitor

uk.co.workingedge.phonegap.plugin.launchnavigator version 5.0.4

Since upgrading to Capacitor, launch navigator no longer recognizes google maps.

I definitely have google maps installed on my iOS device.

When I run the following code:

constructor(private launchNavigator: LaunchNavigator) {}
...
ngOnInit() {
    const availableApps = await this.launchNavigator.availableApps();
    alert(JSON.stringify(availableApps));
}

it returns a JSON object that shows all the different map apps and their availablilty. apple_maps is true, but google_maps is false.

Any ideas why this isn’t working?

Where to temporary store a variable so that it can not be deleted when you refresh a page

Wait for Local Storage [SOLVED]

Android publishing error

$
0
0

I have faced below problem due to I can not publish it. How can I solve this issue?screenshot

Sign In with apple for ionic 4

Open page already scrolled at bottom (chat app)

$
0
0

Thanks! that was I was looking for.


No provider for ChangeDetectorRef

$
0
0

Normaly you don’t have to express give changeDetectorRef.

For my situation this Error occured when I gave an off-base Ionic Service.

Where to temporary store a variable so that it can not be deleted when you refresh a page

$
0
0

I’ve never used any of the enterprise stuff. What does that offer us over good old ionic-storage?

Where to temporary store a variable so that it can not be deleted when you refresh a page

$
0
0

I used ionic-storage instead and it worked. Enterprise cannot be installed for me for some reason.

Where to temporary store a variable so that it can not be deleted when you refresh a page

$
0
0

I think you have to pay for it.

iOS file access with @ionic-native/file/ngx/cordova-plugin-file

$
0
0

Hello,

I am trying to read in a text file that is sent via e-mail and then downloaded to an iOS device. Specifically the text file is saved in -“Files icon - On My Phone”.

I am using the following plugin @ionic-native/file/ngx/cordova-plugin-file. I am able to get this to work on Android but I am not sure of the to the location of the file or how to find it?

I have used the checkDir() on the following iOS directories:

  • cordova.file.tempDirectory - Temp directory that the OS can clear at will. Do not rely on the OS to clear this directory; your app should always remove files as applicable. ( iOS , OSX , windows )
  • cordova.file.syncedDataDirectory - Holds app-specific files that should be synced (e.g. to iCloud). ( iOS , windows )
  • cordova.file.documentsDirectory - Files private to the app, but that are meaningful to other application (e.g. Office files). Note that for OSX this is the user’s ~/Documents directory. ( iOS , OSX )

They all exist. But if I try to access the file in each of these directories via the following:

this.file.readAsText(this.file.tempDirectory, 'MyData.txt').then((data) => {})

It errors out with not being able to locate the file.

Any help on how to determine the path to my text file saved on an iOS device would be greatly appreciated.

Thanks

Viewing all 228529 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>