Unable to start Angular project on AWS Windows Machine (AMD) - node.js

I am trying to install and setup existing angular project on AWS windows machine.
The project was developed and was working on MAC OS earlier but now I have set it up on AWS windows machine and getting error while "ng serve".
Below are the versions -
Angular CLI: 14.2.6
Node: 18.14.0 (Unsupported)
Package Manager: npm 9.3.1
OS: win32 x64
NOTE: The code is still running fine on the mac os and linux environment but getting issue on windows (AMD processor).

Related

Nodejs node-gyp build for both windows and linux

I'm creating a nodejs App and packaging with pkg for both windows and linux, I'm using a windows pc and was wondering if there was a way to build a cpp file for both linux and windows using node-gyp on my windows pc.
I was thinking of building and packaging for windows then rebuild the project under an linux version of node but don't know how to do it?

Change Node.js version for extensionHost debugger type in VSCode

I'm developing a VSCode extension which queries an Oracle database instance via oracledb npm
vscode-database extension was taken as a basis.
Node version installed is 8.9.4. Test script, which checks connection with Oracle works fine:
-> node -v
8.9.4
-> node connect.js
ok
But when I'm trying to debug the VSCode extension with the same connection script, I get error:
Activating extension bajdzis.vscode-database failed: NJS-045: cannot load the oracledb add-on binary for Node.js 7.9.0 (win32, x64)
The error says Node.js 7.9.0 is utilizing, not 8.9.4. I assume that 7.9.0 - is some internal Node instance which is used by VSCode debugger.
Is it possible make VSCode debugger to use Node version installed on a developer's machine, not the internal one?
While it's not possible to make the VS Code debugger use a different version of Node.js, it is possible to compile native modules (like node-oracledb) for the target version of Node.js. Here are some details.
For VS Code 1.21.1 (which uses Electron 1.7.0), I did the following from a terminal in my extension directory (may need to delete the oracledb directory from node_modules first):
# Electron's version.
export npm_config_target=1.7.0
# The architecture of Electron, can be ia32 or x64.
export npm_config_arch=x64
export npm_config_target_arch=x64
# Download headers for Electron.
export npm_config_disturl=https://atom.io/download/electron
# Tell node-pre-gyp that we are building for Electron.
export npm_config_runtime=electron
# Tell node-pre-gyp to build module from source code.
export npm_config_build_from_source=true
# Install all dependencies, and store cache to ~/.electron-gyp.
HOME=~/.electron-gyp npm install
The last line kicked off an npm install which compiled the binary correctly for the target platform (a custom version of Node.js 7.9.0 that has a newer version of V8 than that version of Node.js usually has).

Unable to run my first program with netbeans and cordova

I am using the Netbeans IDE with Cordova. When i try to run my application it fails and i get the following error.
Node.js v8.1.3
cordova v7.0.1
Git v2.13.2
os windows

Ionic2 app moved from mac to pc causing build issues

I moved my ionic2 app from mac to windows pc with nodemodules and tried to run using npm run android, but getting an error as shown below
Here is my ionic info:
Your system information:
Cordova CLI: 6.4.0
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-rc.1-201610241941
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 0.0.31
OS: Windows 7 SP1
Node Version: v6.2.0
I ran following commands:
npm uninstall ionic
npm cache clean
npm install -g ionic#latest
but still ionic-app-scripts is not recognized in my cmd. What am I doing wrong here? It works great in my mac but moving to pc, I'm frustrated.
Any advice would be helpful. Thank you.
Here is my project repo, If I cloned the same app from my repo it's building fine but moving the source code not working.
Update #1
Now getting a different error.
I add this answer just in case so other SO users with the same issue could find the answer easier. Just like #nyluje recommends in this post, to fix
Cannot read property 'AssetUrl' of undefined
you should take away "^" sign in front of "dependencies" and "devDependencies" in package.json, and run npm install again.

Intstalling ibm_db package for node.js using github

I am using node version 4.1.1. I am trying to install ibm_db package for Node.js using: npm install git+https://git#github.com/ibmdb/node-ibm_db.git#v4_support. It turns out my company does not allow name resolution from terminal and so it fails with error: error: Couldn't resolve host 'github.com' while accessing https://git#github.com/ibmdb/node-ibm_db.git/info/refs. Is there any work-around?
If you are on 64bit Windows platform, you can install ibm_db for v4.x using "npm install ibm_db" command now. The latest release of ibm_db support it on Windows. But, for non-windows platforms, you still need to install from git-hub. Thanks.

Resources