性能测量显示我花了很多时间查找子目录。我用
D:\Veraction1st\ows-veraction-repo>npm start
> angular2-app@0.0.0 start D:\Veraction1st\ows-veraction-repo
> gulp serve.dev --color
[15:11:24] Requiring external module ts-node/register
TSError: ? Unable to compile TypeScript
app\pages\item-details\components\item_details.ts (113,8): Property 'charts' doe
s not exist on type 'typeof google'. (2339)
app\pages\item-details\components\item_details.ts (114,8): Property 'charts' doe
s not exist on type 'typeof google'. (2339)
app\pages\item-details\components\item_details.ts (152,44): Property 'ColumnChar
t' does not exist on type 'typeof visualization'. (2339)
at getOutput (D:\Veraction1st\ows-veraction-repo\node_modules\ts-node\src\ts
-node.ts:210:13)
at Object.loader (D:\Veraction1st\ows-veraction-repo\node_modules\ts-node\sr
c\ts-node.ts:225:23)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Liftoff.handleArguments (D:\Veraction1st\ows-veraction-repo\node_modules\
gulp\bin\gulp.js:116:3)
at Liftoff.<anonymous> (D:\Veraction1st\ows-veraction-repo\node_modules\lift
off\index.js:198:16)
at module.exports (D:\Veraction1st\ows-veraction-repo\node_modules\flagged-r
espawn\index.js:17:3)
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.3.1
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! angular2-app@0.0.0 start: `gulp serve.dev --color`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-app@0.0.0 start script 'gulp serve.dev --color'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-app package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! gulp serve.dev --color
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-app
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular2-app
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\Veraction1st\ows-veraction-repo\npm-debug.log
查找给定目录的所有直接子目录。有没有办法更快地完成这个(在Java 7中)?