node.js - How to make the package manager npm use bash 4 on Mac OS X? -


i've updated bash version 4 on mac os x yosemite using homebrew, in order make possible use "globstar" in npm scripts. e.g. recursively list .js files in test directory using pattern ./test/**/*.js. however, npm run scripts older bash version (version 3).

is possible make npm uses updated bash version?

(i'm not sure, guess npm uses /bin/bash instead of /usr/local/bin/bash)

update: particular use case investigate possibilities use npm build tool, , instance bundle test specs browserify using npm script such "build:test:scripts": "browserify ./test/**/*.js -o /build/test-bundle.js",.

try wrapping "globstar" single quotes:

"build:test:scripts": "browserify './test/**/*.js' -o /build/test-bundle.js", 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -