‘NODE_OPTIONS’ is not recognized as an internal or external command

Use cross-env package which easily sets environment variables. Step 1: Install cross-env from npm npm i cross-env In your package.json file (In this example your need is to run ‘start’ command which has ‘NODE_OPTIONS’) { “name”: “your-app”, “version”: “0.0.0”, “scripts”: { … “start”: “NODE_OPTIONS=<your options> <commands>”, } } Step 2 Add ‘cross-env’ in the script … Read more

How can I change the user on Git Bash?

Check what git remote -v returns: the account used to push to an http url is usually embedded into the remote url itself. https://Fre123@github.com/… If that is the case, put an url which will force Git to ask for the account to use when pushing: git remote set-url origin https://github.com/<user>/<repo> Or one to use the … Read more

Visual Studio Code is suddenly defaulting to PowerShell for integrated terminal and tasks

Update: Version v1.60.0 had a bug. Upgrade to v1.60.1 or higher for a fix. The bug manifested in the following symptoms: The Open in Integrated Terminal shortcut-menu command in the Explorer pane’s shortcut always uses the built-in default shell (PowerShell on Windows), ignoring the configured one. The same goes for running tasks (with or without … Read more