Error in installing angular-bootstrap-affix using bower - angularjs

I am using this command to install mgcrea's angular-bootstrap-affix using bower :
bower install angular-bootstrap-affix --save
But it is showing the following error:
ECMDERR Failed to execute
"git ls-remote --tags --heads git://github.com/mgcrea/angular-bootstrap-affix.git",
exit code of #128
Can anybody let me know how I can resolve this error?

I think that the repository mentioned above no longer exists.
You can use this fork here: https://github.com/passy/angular-bootstrap-affix.git
Use "angular-bootstrap-affix": "https://github.com/passy/angular-bootstrap-affix.git" in bower.json
Or create your own fork from it and give that URL.

Related

Exit Code 1 when installing react-email-editor

My deployment was working perfectly fine but today for some reason whenever I try to install dependency it then gives me an error
error C:\react\infaque\node_modules\react-email-editor: Command failed.
Exit code: 1
Command: cd demo && npm install
Arguments:
Directory: C:\react\infaque\node_modules\react-email-editor
Output:
The system cannot find the path specified.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
I tried uninstalling node_modules, lock files, changed yarn version, tried different operating systems and tried installing dependencies in node_modules -> react-email-editor folder. But nothing is working.

yarn "EPERM: operation not permitted, mkdir"

when I try to use yarn install it says
warning ........\package.json: No license field
error An unexpected error occurred: "EPERM: operation not permitted, mkdir 'C:\Users\HiteshKumar'".
info If you think this is a bug, please open a bug report with the information provided in "C:\Users\Hitesh Kumar\OneDrive\Desktop\intern\mvp-web\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
screenshot of the error
I was trying to use the command yarn install to install the node modules required for the project.

Why is yarn throwing an error after installing babel-loader?

After I installed the react-icons package, my code threw an error saying my babel-loader was missing, so I installed that package too.
Next thing I knew, I ran yarn start and this error came up:
Assertion failed: (napi_create_string_utf8(env, events->events[idx].path, NAPI_AUTO_LENGTH, &args[0]) == napi_ok), function fse_dispatch_event, file ../src/fsevents.c, line 147.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I tried using npm start and the app started just fine.
What's wrong?
I believe this is caused by an upstream issue with fsevents.

ECMDERR during bower install

I'm new to git, bower and electron etc.
I'm trying to install some dependencies through command line like this
bower install angular angular-route angular-material --save
It gives me error
I found this solution that says
You are probably behind a firewall. Try cloning via https – that has a higher chance of not being blocked
Then I tried this
bower install https://github.com/angular/bower-angular.git
but it still giving me error
Basically Error is
ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular.git", exit code of #128 fatal: unable to connect to github.com: github.com[0: 192.30.252.128]: errno=No such file or directory
Additional error details: fatal: unable to connect to github.com:
github.com[0: 192.30.252.128]: errno=No such file or directory
Can anyone have Idea what I'm doing wrong or what I'm missing here? I'm totally stuck over here. Any kind of help will be appreciated.
try this
git config --global url."https://".insteadOf git://
check this question for more details:
How to fix bower ECMDERR
I had some invalid proxy settings in .bowerrc
Removed them. All good :)
I managed to get it to work after i changed my .gitconfig file to sslVerify = false
Here is how my .gitconfig looks like:
[http]
sslVerify = false
[url "https://"]
insteadOf = git://
[url "https://github.com/"]
insteadOf = git://github.com/

Can anyone identify what is going on with this bower install of angular-route?

bower not-cached git://github.com/angular/bower-angular-route.git#1.4.6
bower resolve git://github.com/angular/bower-angular-route.git#1.4.6
bower ENOTDIR ENOTDIR: not a directory, mkdir '/var/folders/zq/2wb7gvvx2vz73y2g_b3kfm8w0000gn/T/daniellopez/bower'
Stack trace:
Error: ENOTDIR: not a directory, mkdir '/var/folders/zq/2wb7gvvx2vz73y2g_b3kfm8w0000gn/T/daniellopez/bower'
at Error (native)
Console trace:
Error
at StandardRenderer.error (/usr/local/lib/node_modules/bower/lib/renderers/StandardRenderer.js:82:37)
at Logger.<anonymous> (/usr/local/lib/node_modules/bower/bin/bower:110:22)
at emitOne (events.js:77:13)
at Logger.emit (events.js:169:7)
at Logger.emit (/usr/local/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
at /usr/local/lib/node_modules/bower/lib/commands/index.js:48:20
at _rejected (/usr/local/lib/node_modules/bower/node_modules/q/q.js:844:24)
at /usr/local/lib/node_modules/bower/node_modules/q/q.js:870:30
at Promise.when (/usr/local/lib/node_modules/bower/node_modules/q/q.js:1122:31)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/bower/node_modules/q/q.js:788:41)
System info:
Bower version: 1.6.5
Node version: 4.2.1
OS: Darwin 14.4.0 x64
I ran into the same problem. Here is the key part of the error:
bower ENOTDIR ENOTDIR: not a directory, mkdir '/var/folders/zq/2wb7gvvx2vz73y2g_b3kfm8w0000gn/T/daniellopez/bower'
Bower is getting a "not a directory" error trying to create a new folder inside:
/var/folders/zq/2wb7gvvx2vz73y2g_b3kfm8w0000gn/T/daniellopez
If you look at that location you should see something like this:
$ ls -alh /var/folders/zq/2wb7gvvx2vz73y2g_b3kfm8w0000gn/T/daniellopez
-rwxr--r-- 1 daniellopez staff 0B Feb 21 17:10 /var/folders/zq/2wb7gvvx2vz73y2g_b3kfm8w0000gn/T/daniellopez
That's a 0 byte file, not a directory. Delete or move this file and you should be able to run your install command without issue.
This sounds like some permissions issue, perhaps you used sudo with bower install? It is recommended not to use sudo with bower (unless you really know what you are doing and absolutely have to).
You can try to clean the cache by:
sudo bower cache clean --allow-root
And then run bower install again (without sudo).
See issue 720 on bower.

Resources