2016-08-12 5 views
1

私はangular2 seedプロジェクトに従おうとしていますが、私は遠くにはいません。ng2-test-seedはそのようなファイルやディレクトリをstatできません。

npm run build 

私は3.10.3

アムにV6.3.1 、私のNPMに私のnodejsを更新しました。このエラー

cp: cannot stat ‘src/{index.html,styles.css,system-config.js}’: No such file or directory 

につながるの実行

https://github.com/juliemr/ng2-test-seed

私は明白な何かを欠いている

答えて

0

私のバージョンの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" 
}, 

これは確かにそれではありませんが、それは私のために働くように思われる唯一の方法です。

関連する問題