答案 0 :(得分:0)
按照以下步骤继续进行
npm and node version
npm and node
public void onBeaconServiceConnect() {
beaconManager.addMonitorNotifier(new MonitorNotifier() {
@Override
public void didEnterRegion(Region region) {
try {
beaconManager.startRangingBeaconsInRegion(region);
} catch (RemoteException e) {
}
}
@Override
public void didExitRegion(Region region) {
try {
int k = 0;
beaconManager.stopRangingBeaconsInRegion(region);
} catch (RemoteException e) {
int i = 0;
}
}
@Override
public void didDetermineStateForRegion(int i, Region region) {
if (beaconManager.getRangedRegions().contains(region) == false) {
try {
beaconManager.startRangingBeaconsInRegion(region);
} catch (RemoteException e) {
}
}
}
});
beaconManager.addRangeNotifier(new RangeNotifier() {
@Override
public void didRangeBeaconsInRegion(Collection<Beacon> collection, Region region) {
for (Beacon beacon: collection) {
int j = 0;
}
}
});
try {
Identifier id = Identifier.parse("8492E75F-4FD6-469D-B132-043FE94921D8");
beaconManager.startMonitoringBeaconsInRegion(new Region("8492E75F-4FD6-469D-B132-043FE94921D8", null, null, null));
} catch (RemoteException e) {
int i = 0;
}
}
我发现将环境变量TEMP更改为= C:\ tmp工作。 使用本教程https://docs.npmjs.com/cli/cache
希望这会对你有所帮助。
答案 1 :(得分:0)
我也遇到了同样的问题。所以,我发现下面的命令对我有用。 npm install -g ionic cordova