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

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.

Related

macos: How do I install MiniDC/OS? Error: no module name 'setuptools'

While installing miniDc/OS,I get this error. Is there any other dependency that I need to install, to get rid of this error?
bash-3.2$ brew install https://raw.githubusercontent.com/dcos/dcos-e2e/master/minidcos.rb
Updating Homebrew...
Ignoring path homebrew-cask/
To restore the stashed changes to /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask run:
'cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask && git stash pop'
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
binaryen erlang exploitdb fn git-quick-stats goreleaser libcerf minio
######################################################################## 100.0%
==> Downloading https://codeload.github.com/dcos/dcos-e2e/legacy.tar.gz/2018.12.10.0
Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/4f4e8602babc8445ee074a81a6e032ae53050886dd9e12c8529a684dd5e45c8e--dcos-dcos-e2e-2018.12.10.0-0-g3cedccc.tar.gz
Warning: Cannot verify integrity of 4f4e8602babc8445ee074a81a6e032ae53050886dd9e12c8529a684dd5e45c8e--dcos-dcos-e2e-2018.12.10.0-0-g3cedccc.tar.gz
A checksum was not provided for this resource
For your reference the SHA256 is: 20cf5dd26ed99cd9930e47c77d2aff81aa0b0137aeb4128684165b09312a66e5
==> Downloading https://files.pythonhosted.org/packages/4e/8b/75469c270ac544265f0020aa7c4ea925c5284b23e445cf3aa8b99f662690/virtualenv-16.1.0.tar.gz
Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/bda8bcde19a275fd9c84a7ec957593976e90dfd0e461a87f5698f1d2286c0197--virtualenv-16.1.0.tar.gz
==> python3 -c import setuptools... --no-user-cfg install --prefix=/private/tmp/minidcos--homebrew-virtualenv-20181228-35978-r206u1/target --install-scripts=/private/tmp/minidcos--homebrew-virtualenv
Last 15 lines from /Users/admin/Library/Logs/Homebrew/minidcos/01.python3:
-c
import setuptools, tokenize
__file__ = 'setup.py'
exec(compile(getattr(tokenize, 'open', open)(__file__).read()
.replace('\r\n', '\n'), __file__, 'exec'))
--no-user-cfg
install
--prefix=/private/tmp/minidcos--homebrew-virtualenv-20181228-35978-r206u1/target
--install-scripts=/private/tmp/minidcos--homebrew-virtualenv-20181228-35978-r206u1/target/bin
--single-version-externally-managed
--record=installed.txt
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'setuptools'
Do not report this issue to Homebrew/brew or Homebrew/core!
I recreated this issue by running pip3 uninstall setuptools before brew install-ing minidcos.
I removed the error by running brew postinstall python.
I have added this to the minidcos documentation.
MacOS has default python2.x which keeps conflicting with python3.x.
The only solution I could come up is editing ~/.bash_profile as below
alias python2="/usr/bin/python"
alias python="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3"
Once that change was done. I could install minidcos.

npm test fails with error for reactjs app created with create-react-app

For a create-react-app I have created some tests in a __test__ folder at the same level as the src
After running npm test the project folder I get the following error
How can I fix this so that I can run my tests?
jenkins#VBOX:dashboard$ npm test
> react-scripts test --env=jsdom
Determining test suites to run...fs.js:1236
throw error;
^
Error: watch /home/jenkins/dev/git-stash/dashboard/node_modules/react-scripts/node_modules/babel-jest/node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument/node_modules/babel-types/node_modules/babel-runtime/node_modules/core-js/fn/symbol ENOSPC
at exports._errnoException (util.js:907:11)
at FSWatcher.start (fs.js:1234:19)
at Object.fs.watch (fs.js:1262:11)
at NodeWatcher.watchdir (/home/jenkins/dev/git-stash/dashboard/node_modules/react-scripts/node_modules/jest/node_modules/jest-cli/node_modules/sane/src/node_watcher.js:144:20)
at Walker.<anonymous> (/home/jenkins/dev/git-stash/dashboard/node_modules/react-scripts/node_modules/jest/node_modules/jest-cli/node_modules/sane/src/node_watcher.js:353:12)
at emitTwo (events.js:87:13)
at Walker.emit (events.js:172:7)
at /home/jenkins/dev/git-stash/dashboard/node_modules/react-scripts/node_modules/jest/node_modules/jest-cli/node_modules/sane/node_modules/walker/lib/walker.js:69:16
at go$readdir$cb (/home/jenkins/dev/git-stash/dashboard/node_modules/react-scripts/node_modules/jest/node_modules/jest-cli/node_modules/graceful-fs/graceful-fs.js:149:14)
at FSReqWrap.oncomplete (fs.js:82:15)
npm ERR! Test failed. See above for more details.
Sometimes we hit the limit on the number of files we can watch simultaneously and we gains the error while having plenty of free space.
On Linux (Debian Wheezy, npm v3.10.10, node v6.10.2) it can be fixed by trying $ npm dedupe first, and, if still necessary, by
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Credits go to hexo.io.
So that nonsensical word in all caps at the end of the first line of every node error... that's an error code. This one was ENOSPC, which means "no space on drive".
i.e. your drive was full, You must've freed up space before running npm install again, and it was the former not the latter that fixed your problem.
I got exactly same problem. and I solve this issue by installing newest npm. I got ENOSPC error with npm version 2.15.11. and it works well with v3.10.10.

error in bower install angular multiple select module

i want to install bower angular-multiple-select but getting this error every time,any help
$ bower install --savev angular-multiple-select
bower EACCES EACCES, open '/home/ali/.cache/bower/registry/bower.herokuapp.com/lookup/angular- multiple-select_730ad'
> Stack trace: Error: EACCES, open
> '/home/ali/.cache/bower/registry/bower.herokuapp.com/lookup/angular-multiple-select_730ad'
> Console trace: Error
> at StandardRenderer.error (/usr/lib/node_modules/bower/lib/renderers/StandardRenderer.js:81:37)
> at Logger.<anonymous> (/usr/lib/node_modules/bower/lib/bin/bower.js:110:26)
> at Logger.emit (events.js:95:17)
at Logger.emit (/usr/lib/node_modules/bower/lib/node_modules/bower- logger/lib/Logger.js:29:39)
at /usr/lib/node_modules/bower/lib/commands/index.js:48:20
at _rejected (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:844:24)
at /usr/lib/node_modules/bower/lib/node_modules/q/q.js:870:30
at Promise.when (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:1122:31)
at Promise.promise.promiseDispatch (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:788:41)
at /usr/lib/node_modules/bower/lib/node_modules/q/q.js:604:44 System info:
Bower version: 1.7.9
Node version: 0.10.37
OS: Linux
> 3.2.0-97-generic x64
Thanks,
Are you using Linux? You might need to use the sudo command. I.e.
sudo bower install --save angular-multiple-select

Building mongodb C driver on MacOS

I tried this:
git clone git://github.com/mongodb/mongo-c-driver.git
cd mongo-c-driver
./autogen.sh --prefix=/usr --libdir=/usr/lib64
Output:
Error: libtoolize was not found on your system. Cannot continue.
On Darwin, this is named glibtoolize
Submodule 'src/libbson' (git://github.com/mongodb/libbson.git) registered for path 'src/libbson'
Cloning into 'src/libbson'...
remote: Reusing existing pack: 5211, done.
remote: Counting objects: 66, done.
remote: Compressing objects: 100% (65/65), done.
remote: Total 5277 (delta 35), reused 2 (delta 0)
Receiving objects: 100% (5277/5277), 5.18 MiB | 2.22 MiB/s, done.
Resolving deltas: 100% (3463/3463), done.
Checking connectivity... done.
Submodule path 'src/libbson': checked out '5fafb63060b08c477fa8e243e07de40869de691d'
Error: libtoolize was not found on your system. Cannot continue.
On Darwin, this is named glibtoolize
Error: autoreconf not found, please install it.
Error: autoreconf not found, please install it.
How can I fix this? (Sorry...not normally a C guy, so use small words.)
You need to install libtool. The easiest is to do it with Homebrew. If you don't already have Homebrew installed, you can install it with a simple command:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
You can find more information on the site. When Homebrew is installed, you can install libtool easily:
brew install libtool
You can also use Homebrew package manager for Mac
brew install mongo-c

Permission error on angular build

Using Win 8 and tried git bash, powershell and cmd as administrator as described # angular.org but I get this EPERM on every bower install attempt
bower extract closure-compiler#* compiler-20130603.zip
bower EPERM EPERM, rename 'C:\Users\Attila\AppData\Roaming\bower\cache\p
ackages\67772d798104a767e90491171870a089\_wildcard'
Stack trace:
Error: EPERM, rename 'C:\Users\Attila\AppData\Roaming\bower\cache\packages\67772
d798104a767e90491171870a089\_wildcard'
Console trace:
Trace
at StandardRenderer.error (c:\Users\Attila\AppData\Roaming\npm\node_modules\
bower\lib\renderers\StandardRenderer.js:74:17)
at Logger.updateNotifier.packageName (c:\Users\Attila\AppData\Roaming\npm\no
de_modules\bower\bin\bower:109:18)
at Logger.EventEmitter.emit (events.js:95:17)
at Logger.emit (c:\Users\Attila\AppData\Roaming\npm\node_modules\bower\node_
modules\bower-logger\lib\Logger.js:29:39)
at c:\Users\Attila\AppData\Roaming\npm\node_modules\bower\lib\commands\insta
ll.js:27:16
at _rejected (c:\Users\Attila\AppData\Roaming\npm\node_modules\bower\node_mo
dules\q\q.js:808:24)
at c:\Users\Attila\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.j
s:834:30
at Promise.when (c:\Users\Attila\AppData\Roaming\npm\node_modules\bower\node
_modules\q\q.js:1079:31)
at Promise.promise.promiseDispatch (c:\Users\Attila\AppData\Roaming\npm\node
_modules\bower\node_modules\q\q.js:752:41)
at c:\Users\Attila\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.j
s:574:44
System info:
Bower version: 1.2.8
Node version: 0.10.24
OS: Windows_NT 6.2.9200 x64

Resources