angular / angular-seed

Seed project for angular apps.
http://angularjs.org/
MIT License
13.04k stars 6.94k forks source link

Bower Install Fails #392

Closed davidtaylorjr closed 7 years ago

davidtaylorjr commented 7 years ago

Currently trying to run npm install on the angular-seed and it keeps failing with the following output:

bower angular-mocks#~1.5.0     EINVRES Response of request to https://bower.herokuapp.com/packages/angular-mocks is not a valid jso
n

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (curren
t: {"os":"win32","arch":"x64"})
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\davidtaylorjr\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-c
li.js" "install"
npm ERR! node v6.9.2
npm ERR! npm  v4.1.1
npm ERR! code ELIFECYCLE
npm ERR! angular-seed@0.0.0 postinstall: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-seed@0.0.0 postinstall script 'bower install'.
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 angular-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     bower install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular-seed
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular-seed
npm ERR! There is likely additional logging output above.

The full log output is attached.

npm-debug.txt

danielandrukonis commented 7 years ago

maybe it's due to your operating system. I'm not a windows user, due to this, I would need to try to install angular seed on windows OS to understand this because in OSx it works. As your npm-debug.txt log states;

93 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
93 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
93 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   win32
93 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64

As a result, I will try to install angular seed project on Windows 8 OS and see if I get similar errors.

danielandrukonis commented 7 years ago

Well seems that's not an issue. I have used the following

Daniel@DESKTOP-J6LMHG3 MINGW64 ~ $ ls angular-seed/ ntuser.dat.LOG2 AppData/ NTUSER.DAT{77a2c7ed-26f0-11e5-80da-e41d2d741090}.TM.blf Contacts/ NTUSER.DAT{77a2c7ed-26f0-11e5-80da-e41d2d741090}.TMContainer00000000000000000001.regtrans-ms Desktop/ NTUSER.DAT{77a2c7ed-26f0-11e5-80da-e41d2d741090}.TMContainer00000000000000000002.regtrans-ms Documents/ ntuser.ini Downloads/ OneDrive/ Favorites/ Pictures/ Intel/ 'Saved Games'/ Links/ Searches/ Music/ Tracing/ NTUSER.DAT Videos/ ntuser.dat.LOG1

Daniel@DESKTOP-J6LMHG3 MINGW64 ~ $ cd angular-seed

Daniel@DESKTOP-J6LMHG3 MINGW64 ~/angular-seed (master) $ npm install npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

angular-seed@0.0.0 postinstall C:\Users\Daniel\angular-seed bower install

bower html5-boilerplate#^5.3.0 not-cached https://github.com/h5bp/html5-boilerplate.git#^5.3.0 bower html5-boilerplate#^5.3.0 resolve https://github.com/h5bp/html5-boilerplate.git#^5.3.0 bower angular-loader#~1.5.0 not-cached https://github.com/angular/bower-angular-loader.git#~1.5.0 bower angular-loader#~1.5.0 resolve https://github.com/angular/bower-angular-loader.git#~1.5.0 bower angular-mocks#~1.5.0 not-cached https://github.com/angular/bower-angular-mocks.git#~1.5.0 bower angular-mocks#~1.5.0 resolve https://github.com/angular/bower-angular-mocks.git#~1.5.0 bower angular-route#~1.5.0 not-cached https://github.com/angular/bower-angular-route.git#~1.5.0 bower angular-route#~1.5.0 resolve https://github.com/angular/bower-angular-route.git#~1.5.0 bower angular#~1.5.0 not-cached https://github.com/angular/bower-angular.git#~1.5.0 bower angular#~1.5.0 resolve https://github.com/angular/bower-angular.git#~1.5.0 bower html5-boilerplate#^5.3.0 download https://github.com/h5bp/html5-boilerplate/archive/5.3.0.tar.gz bower angular-loader#~1.5.0 download https://github.com/angular/bower-angular-loader/archive/v1.5.11.tar.gz bower angular-route#~1.5.0 download https://github.com/angular/bower-angular-route/archive/v1.5.11.tar.gz bower angular-mocks#~1.5.0 download https://github.com/angular/bower-angular-mocks/archive/v1.5.11.tar.gz bower angular#~1.5.0 download https://github.com/angular/bower-angular/archive/v1.5.11.tar.gz bower html5-boilerplate#^5.3.0 extract archive.tar.gz bower angular-loader#~1.5.0 extract archive.tar.gz bower angular-loader#~1.5.0 resolved https://github.com/angular/bower-angular-loader.git#1.5.11 bower html5-boilerplate#^5.3.0 resolved https://github.com/h5bp/html5-boilerplate.git#5.3.0 bower angular-route#~1.5.0 extract archive.tar.gz bower angular-route#~1.5.0 resolved https://github.com/angular/bower-angular-route.git#1.5.11 bower angular-mocks#~1.5.0 extract archive.tar.gz bower angular-mocks#~1.5.0 resolved https://github.com/angular/bower-angular-mocks.git#1.5.11 bower angular#~1.5.0 extract archive.tar.gz bower angular#~1.5.0 resolved https://github.com/angular/bower-angular.git#1.5.11 bower angular-loader#~1.5.0 install angular-loader#1.5.11 bower html5-boilerplate#^5.3.0 install html5-boilerplate#5.3.0 bower angular-route#~1.5.0 install angular-route#1.5.11 bower angular-mocks#~1.5.0 install angular-mocks#1.5.11 bower angular#~1.5.0 install angular#1.5.11

angular-loader#1.5.11 app\bower_components\angular-loader └── angular#1.5.11

html5-boilerplate#5.3.0 app\bower_components\html5-boilerplate

angular-route#1.5.11 app\bower_components\angular-route └── angular#1.5.11

angular-mocks#1.5.11 app\bower_components\angular-mocks └── angular#1.5.11

angular#1.5.11 app\bower_components\angular angular-seed@0.0.0 C:\Users\Daniel\angular-seed +-- bower@1.8.0 +-- http-server@0.9.0 | +-- colors@1.0.3 | +-- corser@2.0.1 | +-- ecstatic@1.4.1 | | +-- he@0.5.0 | | +-- minimist@1.2.0 | | -- url-join@1.1.0 | +-- http-proxy@1.16.2 | | +-- eventemitter3@1.2.0 | |-- requires-port@1.0.0 | +-- opener@1.4.2 | +-- optimist@0.6.1 | | +-- minimist@0.0.10 | | -- wordwrap@0.0.3 | +-- portfinder@0.4.0 | | +-- async@0.9.0 | |-- mkdirp@0.5.1 | | -- minimist@0.0.8 |-- union@0.4.6 | -- qs@2.3.3 +-- jasmine-core@2.5.2 +-- karma@0.13.22 | +-- batch@0.5.3 | +-- bluebird@2.11.0 | +-- body-parser@1.16.0 | | +-- bytes@2.4.0 | | +-- content-type@1.0.2 | | +-- debug@2.6.0 | | |-- ms@0.7.2 | | +-- depd@1.1.0 | | +-- http-errors@1.5.1 | | | +-- setprototypeof@1.0.2 | | | -- statuses@1.3.1 | | +-- iconv-lite@0.4.15 | | +-- on-finished@2.3.0 | | |-- ee-first@1.1.1 | | +-- qs@6.2.1 | | +-- raw-body@2.2.0 | | | -- unpipe@1.0.0 | |-- type-is@1.6.14 | | +-- media-typer@0.3.0 | | -- mime-types@2.1.14 | |-- mime-db@1.26.0 | +-- chokidar@1.6.1 | | +-- anymatch@1.3.0 | | | +-- arrify@1.0.1 | | | -- micromatch@2.3.11 | | | +-- arr-diff@2.0.0 | | | |-- arr-flatten@1.0.1 | | | +-- braces@1.8.5 | | | | +-- expand-range@1.8.2 | | | | | -- fill-range@2.2.3 | | | | | +-- is-number@2.1.0 | | | | | +-- isobject@2.1.0 | | | | | +-- randomatic@1.1.6 | | | | |-- repeat-string@1.6.1 | | | | +-- preserve@0.2.0 | | | | -- repeat-element@1.1.2 | | | +-- expand-brackets@0.1.5 | | | |-- is-posix-bracket@0.1.1 | | | +-- extglob@0.3.2 | | | +-- filename-regex@2.0.0 | | | +-- kind-of@3.1.0 | | | | -- is-buffer@1.1.4 | | | +-- normalize-path@2.0.1 | | | +-- object.omit@2.0.1 | | | | +-- for-own@0.1.4 | | | | |-- for-in@0.1.6 | | | | -- is-extendable@0.1.1 | | | +-- parse-glob@3.0.4 | | | | +-- glob-base@0.3.0 | | | |-- is-dotfile@1.0.2 | | | -- regex-cache@0.4.3 | | | +-- is-equal-shallow@0.1.3 | | |-- is-primitive@2.0.0 | | +-- async-each@1.0.1 | | +-- glob-parent@2.0.0 | | +-- inherits@2.0.3 | | +-- is-binary-path@1.0.1 | | | -- binary-extensions@1.8.0 | | +-- is-glob@2.0.1 | | |-- is-extglob@1.0.0 | | -- readdirp@2.1.0 | | +-- readable-stream@2.2.2 | | | +-- buffer-shims@1.0.0 | | | +-- isarray@1.0.0 | | | +-- process-nextick-args@1.0.7 | | |-- util-deprecate@1.0.2 | | -- set-immediate-shim@1.0.1 | +-- colors@1.1.2 | +-- connect@3.5.0 | | +-- debug@2.2.0 | | |-- ms@0.7.1 | | +-- finalhandler@0.5.0 | | | +-- debug@2.2.0 | | | | -- ms@0.7.1 | | |-- escape-html@1.0.3 | | +-- parseurl@1.3.1 | | -- utils-merge@1.0.0 | +-- core-js@2.4.1 | +-- di@0.0.1 | +-- dom-serialize@2.2.1 | | +-- custom-event@1.0.1 | | +-- ent@2.2.0 | | +-- extend@3.0.0 | |-- void-elements@2.0.1 | +-- expand-braces@0.1.2 | | +-- array-slice@0.2.3 | | +-- array-unique@0.2.1 | | -- braces@0.1.5 | |-- expand-range@0.1.1 | | +-- is-number@0.1.1 | | -- repeat-string@0.2.2 | +-- glob@7.1.1 | | +-- fs.realpath@1.0.0 | | +-- inflight@1.0.6 | | |-- wrappy@1.0.2 | | -- once@1.4.0 | +-- graceful-fs@4.1.11 | +-- isbinaryfile@3.0.2 | +-- lodash@3.10.1 | +-- log4js@0.6.38 | | +-- readable-stream@1.0.34 | | | +-- core-util-is@1.0.2 | | | +-- isarray@0.0.1 | | |-- string_decoder@0.10.31 | | -- semver@4.3.6 | +-- mime@1.3.4 | +-- minimatch@3.0.3 | |-- brace-expansion@1.1.6 | | +-- balanced-match@0.4.2 | | -- concat-map@0.0.1 | +-- rimraf@2.5.4 | +-- socket.io@1.7.2 | | +-- debug@2.3.3 | | +-- engine.io@1.8.2 | | | +-- accepts@1.3.3 | | | |-- negotiator@0.6.1 | | | +-- base64id@1.0.0 | | | +-- cookie@0.3.1 | | | +-- debug@2.3.3 | | | -- engine.io-parser@1.3.2 | | | +-- after@0.8.2 | | | +-- arraybuffer.slice@0.0.6 | | | +-- base64-arraybuffer@0.1.5 | | | +-- blob@0.0.4 | | |-- wtf-8@1.0.0 | | +-- has-binary@0.1.7 | | | -- isarray@0.0.1 | | +-- object-assign@4.1.0 | | +-- socket.io-adapter@0.5.0 | | |-- debug@2.3.3 | | +-- socket.io-client@1.7.2 | | | +-- backo2@1.0.2 | | | +-- component-bind@1.0.0 | | | +-- component-emitter@1.2.1 | | | +-- debug@2.3.3 | | | +-- engine.io-client@1.8.2 | | | | +-- component-emitter@1.2.1 | | | | +-- component-inherit@0.0.3 | | | | +-- debug@2.3.3 | | | | +-- has-cors@1.1.0 | | | | +-- parsejson@0.0.3 | | | | +-- parseqs@0.0.5 | | | | +-- xmlhttprequest-ssl@1.5.3 | | | | -- yeast@0.1.2 | | | +-- indexof@0.0.1 | | | +-- object-component@0.0.3 | | | +-- parseuri@0.0.5 | | | |-- better-assert@1.0.2 | | | | -- callsite@1.0.0 | | |-- to-array@0.1.4 | | -- socket.io-parser@2.3.1 | | +-- component-emitter@1.1.2 | | +-- debug@2.2.0 | | |-- ms@0.7.1 | | +-- isarray@0.0.1 | | -- json3@3.3.2 | +-- source-map@0.5.6 |-- useragent@2.1.11 | -- lru-cache@2.2.4 +-- karma-chrome-launcher@0.2.3 | +-- fs-access@1.0.1 | |-- null-check@1.0.0 | -- which@1.2.12 |-- isexe@1.1.2 +-- karma-firefox-launcher@0.1.7 +-- karma-jasmine@0.3.8 +-- karma-junit-reporter@0.4.2 | +-- path-is-absolute@1.0.1 | -- xmlbuilder@3.1.0 -- protractor@4.0.14 +-- @types/jasmine@2.5.41 +-- @types/node@6.0.61 +-- @types/q@0.0.32 +-- @types/selenium-webdriver@2.53.37 +-- adm-zip@0.4.7 +-- chalk@1.1.3 | +-- ansi-styles@2.2.1 | +-- escape-string-regexp@1.0.5 | +-- has-ansi@2.0.0 | | -- ansi-regex@2.1.1 | +-- strip-ansi@3.0.1 |-- supports-color@2.0.0 +-- jasmine@2.4.1 | +-- exit@0.1.2 | +-- glob@3.2.11 | | -- minimatch@0.3.0 | |-- sigmund@1.0.1 | -- jasmine-core@2.4.1 +-- jasminewd2@0.0.10 +-- q@1.4.1 +-- saucelabs@1.3.0 |-- https-proxy-agent@1.0.0 | -- agent-base@2.0.1 |-- semver@5.0.3 +-- selenium-webdriver@2.53.3 | +-- adm-zip@0.4.4 | +-- tmp@0.0.24 | +-- ws@1.1.1 | | +-- options@0.0.6 | | -- ultron@1.0.2 |-- xml2js@0.4.4 | -- sax@0.6.1 +-- source-map-support@0.4.10 -- webdriver-manager@10.3.0 +-- del@2.2.2 | +-- globby@5.0.0 | | -- array-union@1.0.2 | |-- array-uniq@1.0.3 | +-- is-path-cwd@1.0.0 | +-- is-path-in-cwd@1.0.0 | | -- is-path-inside@1.0.0 | |-- path-is-inside@1.0.2 | +-- pify@2.3.0 | -- pinkie-promise@2.0.1 |-- pinkie@2.0.4 +-- ini@1.3.4 +-- request@2.79.0 | +-- aws-sign2@0.6.0 | +-- aws4@1.5.0 | +-- caseless@0.11.0 | +-- combined-stream@1.0.5 | | -- delayed-stream@1.0.0 | +-- forever-agent@0.6.1 | +-- form-data@2.1.2 | |-- asynckit@0.4.0 | +-- har-validator@2.0.6 | | +-- commander@2.9.0 | | | -- graceful-readlink@1.0.1 | |-- is-my-json-valid@2.15.0 | | +-- generate-function@2.0.0 | | +-- generate-object-property@1.2.0 | | | -- is-property@1.0.2 | | +-- jsonpointer@4.0.1 | |-- xtend@4.0.1 | +-- hawk@3.1.3 | | +-- boom@2.10.1 | | +-- cryptiles@2.0.5 | | +-- hoek@2.16.3 | | -- sntp@1.0.9 | +-- http-signature@1.1.1 | | +-- assert-plus@0.2.0 | | +-- jsprim@1.3.1 | | | +-- extsprintf@1.0.2 | | | +-- json-schema@0.2.3 | | |-- verror@1.3.6 | | -- sshpk@1.10.2 | | +-- asn1@0.2.3 | | +-- assert-plus@1.0.0 | | +-- bcrypt-pbkdf@1.0.0 | | +-- dashdash@1.14.1 | | |-- assert-plus@1.0.0 | | +-- ecc-jsbn@0.1.1 | | +-- getpass@0.1.6 | | | -- assert-plus@1.0.0 | | +-- jodid25519@1.0.2 | | +-- jsbn@0.1.0 | |-- tweetnacl@0.14.5 | +-- is-typedarray@1.0.0 | +-- isstream@0.1.2 | +-- json-stringify-safe@5.0.1 | +-- oauth-sign@0.8.2 | +-- qs@6.3.0 | +-- stringstream@0.0.5 | +-- tough-cookie@2.3.2 | | -- punycode@1.4.1 | +-- tunnel-agent@0.4.3 |-- uuid@3.0.1 `-- semver@5.3.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

Daniel@DESKTOP-J6LMHG3 MINGW64 ~/angular-seed (master) $ npm start

angular-seed@0.0.0 prestart C:\Users\Daniel\angular-seed npm install

angular-seed@0.0.0 postinstall C:\Users\Daniel\angular-seed bower install

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

angular-seed@0.0.0 start C:\Users\Daniel\angular-seed http-server -a localhost -p 8000 -c-1 ./app

Starting up http-server, serving ./app Available on: http://localhost:8000 Hit CTRL-C to stop the server http-server stopped.

Daniel@DESKTOP-J6LMHG3 MINGW64 ~/angular-seed (master) $ ls app/ bower.json e2e-tests/ karma.conf.js LICENSE node_modules/ package.json README.md

Daniel@DESKTOP-J6LMHG3 MINGW64 ~/angular-seed (master) $

gkalpak commented 7 years ago

Unfortunately there is not enough info on the error log to debug this. It seems that bower install fails. This can be caused by a firewall blocking certain features (e.g. the git: protocol) or by a bad or missing proxy configuration.

gkalpak commented 7 years ago

I don't know if it will help, but make sure you check out the "Common Issues" section here.

davidtaylorjr commented 7 years ago

@gkalpak yes I have looked at the common issues. git protocols are not an issue for me as I use them in other areas.

Not really sure what to do. It says that it is an invalid JSON at one point.

gkalpak commented 7 years ago

What is the output if you run node_modules/.bin/bower install?

davidtaylorjr commented 7 years ago
C:\Users\davidtaylorjr\OneDrive\devbox\home\angular\angular-seed\node_modules\.bin>bower install
bower                         EINVALID Name must be lowercase, can contain digits, dots, dashes, "@" or spaces

C:\Users\davidtaylorjr\OneDrive\devbox\home\angular\angular-seed\node_modules\.bin>
gkalpak commented 7 years ago

@davidtaylorjr, I mean if you run ./node_modules/.bin/bower install from the root directory of the project.

pawanshetty commented 7 years ago

sudo chown -R $USER:$GROUP ~/.npm sudo chown -R $USER:$GROUP ~/.config

This should solve it

davidtaylorjr commented 7 years ago

I'm on Windows though...

On Sun, Jan 29, 2017 at 5:43 AM Pawan Shetty notifications@github.com wrote:

sudo chown -R $USER:$GROUP ~/.npm sudo chown -R $USER:$GROUP ~/.config

This should solve it

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/angular/angular-seed/issues/392#issuecomment-275906053, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ7DfdSD6Q69Qjom7DZdq6lq44In2enfks5rXG0zgaJpZM4LsckA .

gkalpak commented 7 years ago

@davidtaylorjr, still waiting for an answer to https://github.com/angular/angular-seed/issues/392#issuecomment-275743870. Just saying...

davidtaylorjr commented 7 years ago

I've decided to fork the repo and quit using bower and instead use NPM for all dependencies.

gkalpak commented 7 years ago

👍 (BTW, there is a pending PR for moving the repo away from bower: #390)

davidtaylorjr commented 7 years ago

@gkalpak Very good. I did complete this already and got a successful build. You can see my fork at https://github.com/davidtaylorjr/angular-seed

It compiles correctly. I had to change a few things since on NPM the HTML5 Boilerplate is not updated.