[Onsenui Angular2-binding] error in npm install
-
I have tried angular2 bindings with following README.md (commit #8ed427d)
https://github.com/OnsenUI/OnsenUI/blob/master/bindings/angular2/README.md
but, error has occured in
npm install
and got these messages.npm ERR! Darwin 15.6.0 npm ERR! argv "/Users/pocari/.nodenv/versions/6.5.0/bin/node" "/Users/pocari/.nodenv/versions/6.5.0/bin/npm" "run" "build-dist" npm ERR! node v6.5.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE npm ERR! angular2-onsenui@1.0.0-rc.2 build-dist: `rm -rf dist/* && tsc && tsc -d && webpack --config webpack-umd-bundle.config.js && uglifyjs --compress --output dist/bundles/angular2-onsenui.umd.min.js --source-map dist/bundles/angular2- onsenui.umd.min.js.map -- dist/bundles/angular2-onsenui.umd.js` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the angular2-onsenui@1.0.0-rc.2 build-dist script 'rm -rf dist/* && tsc && tsc -d && webpack --config webpack-umd-bundle.config.js && uglifyjs --compress --output dist/bundles/angular2-onsenui.umd.min.js --source-map di st/bundles/angular2-onsenui.umd.min.js.map -- dist/bundles/angular2-onsenui.umd.js'. 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-onsenui package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! rm -rf dist/* && tsc && tsc -d && webpack --config webpack-umd-bundle.config.js && uglifyjs --compress --output dist/bundles/angular2-onsenui.umd.min.js --source-map dist/bundles/angular2-onsenui.umd.min.js.map -- dist/bundle s/angular2-onsenui.umd.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs angular2-onsenui npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls angular2-onsenui npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /Users/pocari/dev/office/github.com/OnsenUI/OnsenUI/bindings/angular2/npm-debug.log npm WARN @angular/core@2.1.2 requires a peer of rxjs@5.0.0-beta.12 but none was installed. npm WARN angular2-onsenui@1.0.0-rc.2 No license field. npm ERR! Darwin 15.6.0 npm ERR! argv "/Users/pocari/.nodenv/versions/6.5.0/bin/node" "/Users/pocari/.nodenv/versions/6.5.0/bin/npm" "install" npm ERR! node v6.5.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE npm ERR! angular2-onsenui@1.0.0-rc.2 prepublish: `npm run build-dist && npm run ngc` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the angular2-onsenui@1.0.0-rc.2 prepublish script 'npm run build-dist && npm run ngc'. 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-onsenui package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run build-dist && npm run ngc npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs angular2-onsenui npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls angular2-onsenui npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /Users/pocari/dev/office/github.com/OnsenUI/OnsenUI/bindings/angular2/npm-debug.log
How do I try angular2-binding example?
-
@pocari
Thank you for reporting!Actually you have to build the core before building
angular2-onsenui
.
Also, angular2-onsenui switched to use Yarn instead of npm, so you have to executeyarn
.Regarding this issue, I have made changes to
bindings/angular2/README.md
.
Could you try again with the new README?