I'm getting the following error whenever I try to run my app:
My package.json:
{
"name": "SteamCMD-GUI",
"productName": "SteamCMD GUI",
"version": "0.0.1",
"main": "main.js",
"author": "avi12",
"scripts": {
"start": "electron .",
"package": "asar pack \"SteamCMD GUI-win32-x64\" \"SteamCMD GUI.asar\"",
"build-windows": "electron-packager . --platform=win32 --overwrite --out=release-builds --prune=true --icon=image/icon.ico --asar",
"build-linux": "electron-packager . --platform=linux --overwrite --out=release-builds --prune=true --icon=image/icon.png --asar",
"build-mac": "electron-packager . --platform=darwin --overwrite --out=release-builds --prune=true --icon=image/icon.icns --asar"
},
"dependencies": {
"bignumber.js": "^5.0.0",
"chokidar": "^1.7.0",
"decompress": "^4.2.0",
"electron": "^1.8.4",
"electron-dl": "^1.11.0",
"fs-jetpack": "^1.3.0",
"jquery": "^3.3.1",
"node-fetch": "^1.7.3",
"onsenui": "^2.9.2",
"sudo-prompt": "^7.1.1",
"tooltip.js": "^1.2.0"
}
}
How can I solve this?
Searching for that error led me here, which suggests that it's a problem in libuv, an IO library used by Node. This issue is fixed in a later version of libuv, which is used by a later version of Node, which is used by a later version of Electron.
Updating to Electron 2.0 solves this issue.
Bower install seems to be consistently failing for multiple packages for me. I've tried removing the below (nestable) package mention and it then fails for others.
I've tried setting the git settings -
git config --global url."https://github.com/".insteadOf git#github.com:
git config --global url."https://".insteadOf git://
but still fails. I've even tried to point the nestable package to the correct github repo, but still fails. Same keeps happening for some other packages also, not for all packages though.
bower progress nestable#* remote: Compressing objects: 20% (1/5)
bower progress nestable#* remote: Compressing objects: 40% (2/5)
bower progress nestable#* remote: Compressing objects: 60% (3/5)
bower progress nestable#* remote: Compressing objects: 80% (4/5)
bower progress nestable#* remote: Compressing objects: 100% (5/5)
bower progress nestable#* remote: Compressing objects: 100% (5/5), done.
bower invalid-meta nestable is missing "main" entry in bower.json
bower invalid-meta nestable is missing "ignore" entry in bower.json
bower resolved git://github.com/dbushell/Nestable.git#4f93032cfa
bower ENOTFOUND getaddrinfo ENOTFOUND vox.spacefiles
Stack trace:
Error: getaddrinfo ENOTFOUND vox.spacefiles
at errnoException (dns.js:44:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:94:26)
From previous event:
at UrlResolver.Resolver.resolve (C:\Users\DevAdmin\AppData\Roaming\npm\node_
modules\bower\lib\core\resolvers\Resolver.js:100:6)
at PackageRepository._resolve (C:\Users\DevAdmin\AppData\Roaming\npm\node_mo
dules\bower\lib\core\PackageRepository.js:175:21)
at C:\Users\DevAdmin\AppData\Roaming\npm\node_modules\bower\lib\core\Package
Repository.js:77:29
Console trace:
Error
at StandardRenderer.error (C:\Users\DevAdmin\AppData\Roaming\npm\node_module
s\bower\lib\renderers\StandardRenderer.js:82:37)
at Logger.<anonymous> (C:\Users\DevAdmin\AppData\Roaming\npm\node_modules\bo
wer\bin\bower:110:22)
at Logger.emit (events.js:107:17)
at Logger.emit (C:\Users\DevAdmin\AppData\Roaming\npm\node_modules\bower\nod
e_modules\bower-logger\lib\Logger.js:29:39)
at C:\Users\DevAdmin\AppData\Roaming\npm\node_modules\bower\lib\commands\ind
ex.js:45:20
at _rejected (C:\Users\DevAdmin\AppData\Roaming\npm\node_modules\bower\node_
modules\q\q.js:844:24)
at C:\Users\DevAdmin\AppData\Roaming\npm\node_modules\bower\node_modules\q\q
.js:870:30
at Promise.when (C:\Users\DevAdmin\AppData\Roaming\npm\node_modules\bower\no
de_modules\q\q.js:1122:31)
at Promise.promise.promiseDispatch (C:\Users\DevAdmin\AppData\Roaming\npm\no
de_modules\bower\node_modules\q\q.js:788:41)
at C:\Users\DevAdmin\AppData\Roaming\npm\node_modules\bower\node_modules\q\q
.js:604:44
System info:
Bower version: 1.4.1
Node version: 0.12.6
OS: Windows_NT 6.3.9600 x64
Below is the bower.json
{
"name": "Demo",
"version": "0.0.0",
"authors": [
"#clo"
],
"description": "Demo",
"main": "index.html",
"keywords": [
"bootstrap",
"angular",
"admin",
"theme",
"dashboard"
],
"ignore": [
"**/.*"
],
"dependencies": {
"Flot": "flot/flot#0.8.3",
"angular-loading-bar": "0.7.0",
"angular-translate": "2.6.0",
"angular-ui-router": "0.2.13",
"angular": "1.3.13",
"angular-i18n": "1.3.13",
"angular-route": "1.3.13",
"angular-bootstrap": "0.12.1",
"angular-cookies": "1.3.13",
"angular-translate-loader-url": "2.6.0",
"angular-translate-loader-static-files": "2.6.0",
"angular-translate-storage-local": "2.6.0",
"angular-translate-storage-cookie": "2.6.0",
"angular-animate": "1.3.13",
"angular-ui-utils": "0.2.2",
"angularjs-toaster": "0.4.8",
"flatdoc": "0.9.0",
"fontawesome": "4.2.0",
"oclazyload": "0.5.2",
"screenfull": "2.0.0",
"slimScroll": "1.3.3",
"weather-icons": "1.3.2",
"moment": "2.9.0",
"chosen_v1.2.0": "https://github.com/harvesthq/chosen/releases/download/v1.2.0/chosen_v1.2.0.zip",
"flot-spline": "*",
"flot.tooltip": "0.8.4",
"ngstorage": "0.3.0",
"jquery-ui": "1.11.3",
"jqueryui-touch-punch": "*",
"seiyria-bootstrap-slider": "4.5.0",
"jquery.inputmask": "3.1.61",
"bootstrap-wysiwyg": "*",
"ika.jvectormap": "*",
"jquery": "2.1.3",
"fullcalendar": "2.2.7",
"animate.css": "3.2.1",
"fastclick": "1.0.6",
"modernizr": "2.8.3",
"animo.js": "ThrivingKings/animo.js#1.0.2",
"jquery-classyloader": "http://www.class.pm/files/jquery-classyloader.zip",
"whirl": "1.0.0",
"skycons": "darkskyapp/skycons",
"jQuery-gMap": "marioestrada/jQuery-gMap#2.1.5",
"ngDialog": "0.3.11",
"codemirror": "5.0.0",
"marked": "0.3.3",
"bootstrap-tagsinput": "0.4.2",
"ngWig": "stevermeister/ngWig#0.8.5",
"bootstrap-filestyle": "1.1.2",
"parsleyjs": "2.0.7",
"datatables": "1.10.5",
"datatables-colvis": "1.1.1",
"angular-sanitize": "1.3.13",
"angular-resource": "1.3.13",
"angular-chosen-localytics": "1.0.6",
"ng-table": "0.5.1",
"ng-table-export": "*",
"simple-line-icons": "0.1.1",
"angular-bootstrap-nav-tree": "*",
"nestable": "*",
"html.sortable": "0.1.8",
"angular-xeditable": "0.1.8",
"angular-file-upload": "1.1.5",
"ng-img-crop": "0.3.2",
"angular-ui-select": "0.9.6",
"angular-ui-codemirror": "0.2.2",
"angular-carousel": "0.3.10",
"angular-touch": "1.3.13",
"angular-dynamic-locale": "0.1.27",
"ng-grid": "2.0.14",
"ngInfiniteScroll": "1.2.0",
"Chart.js": "~1.0.1"
},
"resolutions": {
"jquery-ui": "1.11.3",
"jquery": "2.1.3",
"fullcalendar": "2.2.7",
"angular": "1.3.13",
"weather-icons": "1.3.2",
"jquery.inputmask": "3.1.61",
"angular-cookies": "1.3.13",
"angular-translate": "2.6.0",
"angular-translate-storage-cookie": "2.6.0",
"angular-loading-bar": "0.7.0",
"angular-bootstrap": "0.12.1",
"angular-translate-loader-url": "2.6.0",
"angular-translate-loader-static-files": "2.6.0",
"angular-translate-storage-local": "2.6.0",
"angular-ui-utils": "0.2.2",
"flatdoc": "0.9.0",
"screenfull": "2.0.0",
"moment": "2.9.0",
"seiyria-bootstrap-slider": "4.5.0",
"animate.css": "3.2.1",
"fastclick": "1.0.6",
"ngDialog": "0.3.11",
"codemirror": "5.0.0",
"marked": "0.3.3",
"parsleyjs": "2.0.7",
"datatables": "1.10.5",
"ng-table": "0.5.1"
}
}
EDIT
Am seeing that its failing randomly for packages
bower resolved git://github.com/angular/bower-angular-i18n.git#1.3.13
bower resolved git://github.com/FortAwesome/Font-Awesome.git#4.2.0
bower ENOTFOUND getaddrinfo ENOTFOUND vox.spacefiles
Stack trace:
Error: getaddrinfo ENOTFOUND vox.spacefiles
at errnoException (dns.js:44:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:94:26)
And if I try to do a manual install of the individual package that seems to fail, it succeeds for that.
What can be going wrong?
I also faced same issue, It's from your bower.json file.
In my case, the source URL is no more in use. I purchased a theme from here theme
So there is one dependency from the URL
"jquery-classyloader": "https://vox.space/file_download/24/jquery-classyloader.zip"
Surprisely vox.space is no more alive, So every time I got ENOTFOUND getaddrinfo ENOTFOUND vox.space vox.space
You also need to validate the existence of some dependency in your code and remove it if not necessary.
Im on windows and when I use Angular generator to scaffold my application bower_components is missing in app directory - instead its in the root directory
This is my app directory after fresh scaffolding:
So I have to manually put bower components in the app directory...
Any ideas why is this happening?
P.S in bower.json I have:
"appPath": "app"
But that option is not respected, when I run bower install it doesnt add bower_components into the app directory.
Made it work - edited .bowerrc
{
"directory": "app/bower_components"
}
and then bower install.
Now all dependencies are in app directory.
try edit your bower.json file, then run bower install
{
"name": "mi-portfolio",
"version": "0.0.0",
"directory": "bower_components/"
"dependencies":
{
"angular": "1.2.6",
"json3": "~3.2.6",
"es5-shim": "~2.1.0",
"jquery": "~1.10.2",
"bootstrap": "~3.0.3",
"angular-cookies": "1.2.6",
"angular-sanitize": "1.2.6"
},
"devDependencies":
{
"angular-mocks": "1.2.6",
"angular-scenario": "1.2.6"
}
}
look here bower code
I am using bower see dependencies from my bower.json below, so the question is I want bower to give a report of dependencies with newer version release but without installing it, for insatnce using npm-check-updates for npm give a nice list of dependencies that are outdated.
...
"dependencies": {
"angular": "1.3.0-beta.17",
"angular-animate": "1.3.0-beta.17",
"angular-mocks": "1.3.0-beta.17",
"angular-resource": "1.3.0-beta.17",
"angular-route": "1.3.0-beta.17",
"angular-ui-select2": "~0.0.5",
"underscore": "~1.x",
"bootstrap": "~3.x",
"components-font-awesome": "~4.x",
"angular-bootstrap": "~0.11.0",
"ng-grid": "~2.0.11",
"AngularJS-Toaster": "~0.4.6",
"intro.js": "~0.9.0",
"angular-intro.js": "~1.1.1"
},
...
You can just do bower ls and it'll tell you which packages are outdated. However there's discussion regarding adding an outdated command alias to be consistent with other package managers, included npm. You can voice your support here: https://github.com/bower/bower/issues/1138
I have this code in my webstorm IDE in the Terminal dialog:
bower install angular-ui-router
When I look now in my app/bower_components folder I can see the new created folder with angular-ui-router package.
But what I would have expected is also an entry in the bower.json file:
{
"name": "app",
"version": "0.0.0",
"dependencies": {
"angular": "1.2.6",
"json3": "~3.2.6",
"es5-shim": "~2.1.0",
"jquery": "~1.10.2",
"bootstrap": "~3.0.3",
"angular-resource": "1.2.6",
"angular-sanitize": "1.2.6",
"angular-route": "1.2.6",
"angular-bootstrap": "~0.10.0"
},
"devDependencies": {
"angular-mocks": "1.2.6",
"angular-scenario": "1.2.6"
}
}
I does not see the angular-ui-router anywhere!
Why is that?
You need to use the --save flag to get it in your bower.json:
bower install --save angular-ui-router