Angular2 构建过程 (npm install) 在 'gulp pubget.dart' 上失败

Angular2 build process (npm install) failing on 'gulp pubget.dart'

build steps 之后,当我 运行 npm install 时,我得到了这个错误:

module.js:340
    throw err;
          ^
Error: Cannot find module 'object-assign'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/bearfriend/Sites/angular2/node_modules/gulp/node_modules/gulp-util/lib/PluginError.js:5:20)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

以下是一些附加日志:

verbose stack Error: angular@2.0.0-alpha.21 postinstall: `webdriver-manager update && bower install && gulp pubget.dart && tsd reinstall --config modules/angular2/tsd.json && tsd reinstall --config\
 tools/tsd.json`
329 verbose stack Exit status 8
329 verbose stack     at EventEmitter.<anonymous> (/Users/bearfriend/.nvm/v0.10.38/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
329 verbose stack     at EventEmitter.emit (events.js:98:17)
329 verbose stack     at ChildProcess.<anonymous> (/Users/bearfriend/.nvm/v0.10.38/lib/node_modules/npm/lib/utils/spawn.js:24:14)
329 verbose stack     at ChildProcess.emit (events.js:98:17)
329 verbose stack     at maybeClose (child_process.js:766:16)
329 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:833:5)
330 verbose pkgid angular@2.0.0-alpha.21
331 verbose cwd /Users/bearfriend/Sites/angular2
332 error Darwin 14.1.0
333 error argv "node" "/Users/bearfriend/.nvm/v0.10.38/bin/npm" "install"
334 error node v0.10.38
335 error npm  v2.9.0
336 error code ELIFECYCLE
337 error angular@2.0.0-alpha.21 postinstall: `webdriver-manager update && bower install && gulp pubget.dart && tsd reinstall --config modules/angular2/tsd.json && tsd reinstall --config tools/tsd.json\
`
337 error Exit status 8
338 error Failed at the angular@2.0.0-alpha.21 postinstall script 'webdriver-manager update && bower install && gulp pubget.dart && tsd reinstall --config modules/angular2/tsd.json && tsd reinstall --c\
onfig tools/tsd.json'.

我不确定我到底在看什么,所以任何帮助将不胜感激。我不打算用 Dart 做任何工作,所以如果可以忽略或删除它就好了,但我想正确设置所有内容。

虽然我仍然不确定这是 angular 的错误还是 npm 问题,但这是我所做的:

根据错误信息推断,

cd node_modules/gulp/node_modules/gulp-util

package.json 确认它取决于对象分配。 在 node_modules 中确认它没有安装。

npm install
cd ../../../..
npm install

瞧!继续 build process