How to resolve npm run dev missing script issues?

npm run <command> will run bash script from package.json from ‘scripts’ value of ” attribute. For example: package.json { “name”: “app”, “version”: “0.0.0”, “license”: “MIT”, “scripts”: { “server”: “webpack-dashboard — webpack-dev-server –inline –port 8080”, “webdriver-update”: “webdriver-manager update”, }, “dependencies”: { “@angular/common”: “~2.2.0”, “@angular/core”: “~2.2.0” }, “devDependencies”: { “@types/core-js”: “^0.9.0” } } In this case you … Read more

Extend $PATH variable in git bash under Windows

Here are two ideas. You can have your path with double quote mark. export PATH=$PATH:”/C/Program Files (x86)/apache-maven-3.3.3/bin” Or, You can also make symbolic link for the directory. ln -s “/C/Program Files (x86)/apache-maven-3.3.3/bin” ./mvnbin export PATH=$PATH:/your-path/mvnbin It works for me in mingw32 environment.

Git Bash bash: open: command not found

bash: open: command not found This error message is trying to tell you that there is no such command called “open”. There’s nothing wrong with the README.md. OSX – open is a universal opener in OSX Linux – has xdg-open Windows – use start But you don’t need to take the instructions literally. It’s not … Read more

git stash is slow on windows

With Git for Windows 2.19 (Sept. 2018), git stash (and git rebase) are no longer script-only, but actually a binary compiled with git.exe. See git-for-windows/build-extra PR 203. To activate them, type: git config –global rebase.useBuiltin true git config –global stash.useBuiltin true Warning: As nice as the speed-ups are, the patches in question are still in … Read more

Git 2.13 conditional config on windows

Your global C:/Users/<user-name>/.gitconfig should have this includeIf: [includeIf “gitdir:C:/Users/<user-name>/Documents/webstorm/corporate/”] path = .gitconfig-work with having your work Git repos in C:/Users/<user-name>/Documents/webstorm/corporate and the conditional work configuration should be located at C:/Users/<user-name>/.gitconfig-work. That’s at least working for me in Window’s cmd and Cmder. A git config –show-origin –get user.email should than show you from where a config … Read more