Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Bower Install Fails #392

Closed
davidtaylorjr opened this issue Jan 24, 2017 · 14 comments
Closed

Bower Install Fails #392

davidtaylorjr opened this issue Jan 24, 2017 · 14 comments

Comments

@davidtaylorjr
Copy link

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 [email protected]: 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! [email protected] postinstall: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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
Copy link

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
Copy link

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

Daniel@DESKTOP-J6LMHG3 MINGW64 ~
$ node -v
v6.9.4

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 [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> [email protected] 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
[email protected] C:\Users\Daniel\angular-seed
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| |   `-- [email protected]
| `-- [email protected]
|   `-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| |   +-- [email protected]
| |   `-- [email protected]
| |     `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | |   +-- [email protected]
| | |   | `-- [email protected]
| | |   +-- [email protected]
| | |   | +-- [email protected]
| | |   | | `-- [email protected]
| | |   | |   +-- [email protected]
| | |   | |   +-- [email protected]
| | |   | |   +-- [email protected]
| | |   | |   `-- [email protected]
| | |   | +-- [email protected]
| | |   | `-- [email protected]
| | |   +-- [email protected]
| | |   | `-- [email protected]
| | |   +-- [email protected]
| | |   +-- [email protected]
| | |   +-- [email protected]
| | |   | `-- [email protected]
| | |   +-- [email protected]
| | |   +-- [email protected]
| | |   | +-- [email protected]
| | |   | | `-- [email protected]
| | |   | `-- [email protected]
| | |   +-- [email protected]
| | |   | +-- [email protected]
| | |   | `-- [email protected]
| | |   `-- [email protected]
| | |     +-- [email protected]
| | |     `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| |   +-- [email protected]
| |   | +-- [email protected]
| |   | +-- [email protected]
| |   | +-- [email protected]
| |   | `-- [email protected]
| |   `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| |   `-- [email protected]
| |     +-- [email protected]
| |     `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| |   +-- [email protected]
| |   `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | |   +-- [email protected]
| | |   +-- [email protected]
| | |   +-- [email protected]
| | |   +-- [email protected]
| | |   `-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | |   `-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| |   +-- [email protected]
| |   +-- [email protected]
| |   | `-- [email protected]
| |   +-- [email protected]
| |   `-- [email protected]
| +-- [email protected]
| `-- [email protected]
|   `-- [email protected]
+-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| `-- [email protected]
|   `-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| `-- [email protected]
`-- [email protected]
  +-- @types/[email protected]
  +-- @types/[email protected]
  +-- @types/[email protected]
  +-- @types/[email protected]
  +-- [email protected]
  +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | | `-- [email protected]
  | +-- [email protected]
  | `-- [email protected]
  +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | | `-- [email protected]
  | |   `-- [email protected]
  | `-- [email protected]
  +-- [email protected]
  +-- [email protected]
  +-- [email protected]
  | `-- [email protected]
  |   `-- [email protected]
  |     `-- [email protected]
  +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | | +-- [email protected]
  | | `-- [email protected]
  | `-- [email protected]
  |   `-- [email protected]
  +-- [email protected]
  `-- [email protected]
    +-- [email protected]
    | +-- [email protected]
    | | `-- [email protected]
    | |   `-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | | `-- [email protected]
    | |   `-- [email protected]
    | +-- [email protected]
    | `-- [email protected]
    |   `-- [email protected]
    +-- [email protected]
    +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | | `-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | | `-- [email protected]
    | +-- [email protected]
    | | +-- [email protected]
    | | | `-- [email protected]
    | | `-- [email protected]
    | |   +-- [email protected]
    | |   +-- [email protected]
    | |   | `-- [email protected]
    | |   +-- [email protected]
    | |   `-- [email protected]
    | +-- [email protected]
    | | +-- [email protected]
    | | +-- [email protected]
    | | +-- [email protected]
    | | `-- [email protected]
    | +-- [email protected]
    | | +-- [email protected]
    | | +-- [email protected]
    | | | +-- [email protected]
    | | | +-- [email protected]
    | | | `-- [email protected]
    | | `-- [email protected]
    | |   +-- [email protected]
    | |   +-- [email protected]
    | |   +-- [email protected]
    | |   +-- [email protected]
    | |   | `-- [email protected]
    | |   +-- [email protected]
    | |   +-- [email protected]
    | |   | `-- [email protected]
    | |   +-- [email protected]
    | |   +-- [email protected]
    | |   `-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | | `-- [email protected]
    | +-- [email protected]
    | `-- [email protected]
    `-- [email protected]

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 [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

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

> [email protected] prestart C:\Users\Daniel\angular-seed
> npm install


> [email protected] 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 [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

> [email protected] 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
Copy link
Member

gkalpak commented Jan 24, 2017

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
Copy link
Member

gkalpak commented Jan 24, 2017

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

@davidtaylorjr
Copy link
Author

@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
Copy link
Member

gkalpak commented Jan 25, 2017

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

@davidtaylorjr
Copy link
Author

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
Copy link
Member

gkalpak commented Jan 27, 2017

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

@pawanshetty
Copy link

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

This should solve it

@davidtaylorjr
Copy link
Author

davidtaylorjr commented Jan 29, 2017 via email

@gkalpak
Copy link
Member

gkalpak commented Jan 29, 2017

@davidtaylorjr, still waiting for an answer to #392 (comment).
Just saying...

@davidtaylorjr
Copy link
Author

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

@gkalpak
Copy link
Member

gkalpak commented Jan 30, 2017

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

@davidtaylorjr
Copy link
Author

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants