私のバージョンのnpmとnodejsの問題は、パッケージjsonの中括弧で囲まれたコピーコマンドのようです。
これは、私は、個々のコピー・コマンドとアプローチ「一度にコピー多くのファイル」に置き換えているこの私のバージョンorginalパッケージJSON
"scripts": {
"postinstall": "typings install --ambient",
"clean": "rimraf built/",
"copy": "cp src/{index.html,styles.css,system-config.js} built/",
"copytemplates": "cp src/app/{*.html,*.css} built/app/",
"build": "tsc && npm run copy && npm run copytemplates",
"watch": "tsc --watch",
"serve": "http-server -p 9090 -c-1",
"test": "karma start karma.conf.js"
}
でスクリプト部分です。ビルドは現在機能しています。
"scripts": {
"postinstall": "typings install --ambient",
"clean": "rimraf built/",
"copy": "npm run copyIndex && npm run copyStyles && npm run copySystemConfig",
"copyIndex": "cp src/index.html built/",
"copySystemConfig": "cp src/system-config.js built/",
"copyStyles": "cp src/styles.css built/",
"copytemplates": "npm run copytemplatesHtml && npm run copytemplatesCSS",
"copytemplatesHtml": "cp src/app/*.html built/app/",
"copytemplatesCSS": "cp src/app/*.css built/app/ ",
"build": "tsc && npm run copy && npm run copytemplates",
"watch": "tsc --watch",
"serve": "http-server -p 9090 -c-1",
"test": "karma start karma.conf.js"
},
これは確かにそれではありませんが、それは私のために働くように思われる唯一の方法です。
出典
2016-08-12 23:33:52
Uwe