Ich klonte ein bereits bestehendes Projekt. Als ich bauen, bekam ich diesen Fehler in der npm-debug.log
gespeichert:npm ERR! jspm Bundle
0 info it worked if it ends with ok
1 verbose cli [ 'c:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'bundle-dep' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebundle-dep', 'bundle-dep', 'postbundle-dep' ]
5 info prebundle-dep [email protected]
6 info bundle-dep [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec bundle-dep script
9 verbose stack Error: [email protected] bundle-dep: `jspm bundle "src - [src/**/*] - [components/**/*]" www/bundle.js`
9 verbose stack Exit status 1
9 verbose stack at EventEmitter.<anonymous> (c:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:213:16)
9 verbose stack at EventEmitter.emit (events.js:110:17)
9 verbose stack at ChildProcess.<anonymous> (c:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
9 verbose stack at ChildProcess.emit (events.js:110:17)
9 verbose stack at maybeClose (child_process.js:1015:16)
9 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
10 verbose pkgid [email protected]
11 verbose cwd c:\GIT\mas\Rapid\hide
12 error Windows_NT 6.1.7601
13 error argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "bundle-dep"
14 error node v0.12.4
15 error npm v2.10.1
16 error code ELIFECYCLE
17 error [email protected] bundle-dep: `jspm bundle "src - [src/**/*] - [components/**/*]" www/bundle.js`
17 error Exit status 1
18 error Failed at the [email protected] bundle-dep script 'jspm bundle "src - [src/**/*] - [components/**/*]" www/bundle.js'.
18 error This is most likely a problem with the sdk package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error jspm bundle "src - [src/**/*] - [components/**/*]" www/bundle.js
18 error You can get their info via:
18 error npm owner ls sdk
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]
Während hier die package.json
:
{
"name": "sdk",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"postinstall": "typings install && bower install --production && jspm install && node src/tools/updateDependencies.js && npm run bundle-dep",
"_jspm": "jspm install",
"_postjspm": "node src/tools/updateDependencies.js && npm run bundle-dep",
"bundle-dep": "jspm bundle \"src - [src/**/*] - [components/**/*]\" www/bundle.js",
"start": "node dev-server.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"jspm": "^0.17.0-beta.12",
"typings": "^0.7.12"
},
"devDependencies": {
"angular2": "2.0.0-beta.15",
"chokidar-socket-emitter": "^0.3.1",
"express": "^4.13.4",
"open": "0.0.5",
"rxjs": "5.0.0-beta.2",
"spdy": "^3.2.3"
},
"jspm": {
"name": "sdk",
"directories": {
"lib": "src"
},
"dependencies": {
"angular2": "npm:[email protected]",
"es6-shim": "github:es-shims/[email protected]^0.35.0",
"json": "github:systemjs/[email protected]^0.1.0",
"systemjs-hot-reloader": "github:capaj/[email protected]^0.5.6"
},
"devDependencies": {
"os": "github:jspm/[email protected]^0.2.0-alpha",
"plugin-typescript": "github:frankwallis/[email protected]^4.0.5"
},
"peerDependencies": {
"assert": "github:jspm/[email protected]^0.2.0-alpha",
"fs": "github:jspm/[email protected]^0.2.0-alpha",
"net": "github:jspm/[email protected]^0.2.0-alpha",
"process": "github:jspm/[email protected]^0.2.0-alpha",
"reflect-metadata": "npm:[email protected]",
"rxjs": "npm:[email protected]^5.0.0-beta.2",
"tty": "github:jspm/[email protected]^0.2.0-alpha",
"util": "github:jspm/[email protected]^0.2.0-alpha",
"zone.js": "npm:[email protected]^0.6.6"
},
"overrides": {
"npm:[email protected]": {
"main": false,
"dependencies": {
"reflect-metadata": "npm:[email protected]",
"rxjs": "npm:[email protected]^5.0.0-beta.2",
"zone.js": "npm:[email protected]^0.6.6"
},
"peerDependencies": {
"reflect-metadata": "npm:[email protected]",
"rxjs": "npm:[email protected]^5.0.0-beta.2",
"zone.js": "npm:[email protected]^0.6.6"
},
"jspmNodeConversion": false,
"map": {
"crypto": "@empty"
},
"meta": {
"src/*.js": {
"deps": [
"reflect-metadata",
"zone.js"
]
}
},
"format": "detect"
},
"npm:[email protected]": {
"main": "browser.js",
"jspmNodeConversion": false,
"format": "cjs",
"map": {
"./browser.js": {
"node": "./node.js"
},
"fs": "@node/fs",
"net": "@node/net",
"tty": "@node/tty",
"util": "@node/util"
}
},
"npm:[email protected]": {
"jspmNodeConversion": false,
"format": "cjs"
},
"npm:[email protected]": {
"map": {
"crypto": "@empty"
}
},
"npm:[email protected]": {
"browser": {},
"map": {
"buffer": "@empty",
"child_process": "@empty",
"fs": "@empty",
"path": "@empty",
"process": "@empty",
"readline": "@empty"
}
}
}
}
}
Es scheint, dass das Problem auf dem bundle-dep
unter scripts
ist. Was hätte schiefgehen können?
dachte ich auch, also installierte ich 'jspm' separat global. Hier ist das Ergebnis nach Überprüfung der Version: '0.17.0-beta.24 Läuft gegen lokale jspm install.' Als ich erneut versucht,' npm installieren', trat der Fehler auf. –
In diesem Fall könnte es sich um das 'www/bundle.js' im' bundle-dep'-Skript handeln. Sie laufen auf Windows, oder? Dieser Schrägstrich könnte den cmd verwirren. Versuchen Sie 'jspm bundle 'src - [src/**/*] - [Komponenten/**/*]" www/bundle.js "' in der Befehlszeile. –
Yep, ich bin auf Windows. Ich habe versucht, den Befehl auszuführen, den Sie angegeben haben, er hat die gleiche Ausgabe. Nun, die Protokolle geben mir diesen Fehler: 'err TypeError: jspm_packages/npm/[email protected]/src/common/directives/observable_list_diff.js: Kann die Eigenschaft 'indexOf' von undefined nicht lesen, also habe ich aktualisiert 'angular2 @ 2.0.0-beta.15' bis' angular2 @ 2.0.0-beta.17', hat es immer noch die gleiche Ausgabe. –