We've ran into this problem when we started deploying to Azure.
The problem is most likely caused by a bug in glob (on which Grunt has an dependency).
This bug is long since been fixed (see github issue 205), but unfortunately the latest stable release on NPM is 0.4.5 (published two years ago) - which has an dependency on glob version 3.1.21 (current version is 6.0.4).
So fixes for this are either:
a) get grunt by cloning from github instead of using npm
or
b) after npm install, navigate to /node_modules/grunt
and execute an npm install glob@^6.0.4 --save
to upgrade the glob dependency of the installed grunt version.
In your deploy.sh, the npm install may look like this:
eval $NPM_CMD install
You'll want to add the following right after it
pushd ./node_modules/grunt
eval $NPM_CMD install glob@^6.0.4 --save
popd
Note; changing the /**/ to /*/ gets rid of the error, but then you give up
the recursive copy.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…