Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

EPERM error during bower install - already running as administrator #5336

Closed
cortfritz opened this issue Dec 9, 2013 · 13 comments
Closed

EPERM error during bower install - already running as administrator #5336

cortfritz opened this issue Dec 9, 2013 · 13 comments

Comments

@cortfritz
Copy link

Hi I got the following dump on Win8.1 during the bower install portion of angular.js setup. My command prompt was already running as administrator (i.e. I looked at #3965).

Here is the dump:
C:\Users\cofritz\Documents\GitHub\angular.js>bower install
bower bootstrap#* not-cached https://raw.github.com/twbs/bootstrap/v2.0.2/docs/assets/bootstrap.zip#*
bower bootstrap#* resolve https://raw.github.com/twbs/bootstrap/v2.0.2/docs/assets/bootstrap.zip#*
bower ng-closure-runner#* not-cached https://raw.github.com/angular/ng-closure-runner/v0.2.2/assets/ng-closure-runner.
zip#*
bower ng-closure-runner#* resolve https://raw.github.com/angular/ng-closure-runner/v0.2.2/assets/ng-closure-runner.
zip#*
bower closure-compiler#* not-cached https://closure-compiler.googlecode.com/files/compiler-20130603.zip#*
bower closure-compiler#* resolve https://closure-compiler.googlecode.com/files/compiler-20130603.zip#*
bower bootstrap#* download https://raw.github.com/twbs/bootstrap/v2.0.2/docs/assets/bootstrap.zip
bower closure-compiler#* download https://closure-compiler.googlecode.com/files/compiler-20130603.zip
bower ng-closure-runner#* download https://raw.github.com/angular/ng-closure-runner/v0.2.2/assets/ng-closure-runner.
zip
bower lunr.js#0.4.0 cached git://github.com/olivernn/lunr.js.git#0.4.0
bower lunr.js#0.4.0 validate 0.4.0 against git://github.com/olivernn/lunr.js.git#0.4.0
bower jquery#1.10.2 cached git://github.com/components/jquery.git#1.10.2
bower jquery#1.10.2 validate 1.10.2 against git://github.com/components/jquery.git#1.10.2
bower google-code-prettify#1.0.0 cached git://github.com/tcollard/google-code-prettify.git#1.0.0
bower google-code-prettify#1.0.0 validate 1.0.0 against git://github.com/tcollard/google-code-prettify.git#1.0.0

bower components-font-awesome#3.1.0 cached git://github.com/components/font-awesome.git#3.1.0
bower components-font-awesome#3.1.0 validate 3.1.0 against git://github.com/components/font-awesome.git#3.1.0
bower ng-closure-runner#* extract ng-closure-runner.zip
bower bootstrap#* extract bootstrap.zip
bower closure-compiler#* extract compiler-20130603.zip
bower ng-closure-runner#* EPERM EPERM, rename 'C:\Users\cofritz\AppData\Local\Temp\REDMOND-cofritz\bow
er\ng-closure-runner-26884-dN9IQd'

Stack trace:
Error: EPERM, rename 'C:\Users\cofritz\AppData\Local\Temp\REDMOND-cofritz\bower\ng-closure-runner-26884-dN9IQd'

Console trace:
Trace
at StandardRenderer.error (C:\Users\cofritz\AppData\Roaming\npm\node_modules\bower\lib\renderers\StandardRenderer.js
:74:17)
at Logger.updateNotifier.packageName (C:\Users\cofritz\AppData\Roaming\npm\node_modules\bower\bin\bower:109:18)
at Logger.EventEmitter.emit (events.js:95:17)
at Logger.emit (C:\Users\cofritz\AppData\Roaming\npm\node_modules\bower\node_modules\bower-logger\lib\Logger.js:29:3
9)
at C:\Users\cofritz\AppData\Roaming\npm\node_modules\bower\lib\commands\install.js:27:16
at _rejected (C:\Users\cofritz\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:808:24)
at C:\Users\cofritz\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:834:30
at Promise.when (C:\Users\cofritz\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:1079:31)
at Promise.promise.promiseDispatch (C:\Users\cofritz\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:752:
41)
at C:\Users\cofritz\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js:574:44

System info:
Bower version: 1.2.8
Node version: 0.10.3

@ghost ghost assigned tbosch Dec 10, 2013
@tbosch
Copy link
Contributor

tbosch commented Dec 10, 2013

Hi,
could you try again with an older version of angular?
E.g. https://github.com/angular/angular.js/tree/v1.0.x

@cortfritz
Copy link
Author

sure will try now

@cortfritz
Copy link
Author

that worked, thank you.

@mary-poppins
Copy link

Hi @cortfritz,
I didn't mean that you should switch to Angular 1.0.x (which you did by cloning https://github.com/angular/angular.js/tree/v1.0.x), it was just to doublecheck that the problem didn't exist in 1.0.x.

So do you still have the problem with the master branch?

@cortfritz
Copy link
Author

yay, so glad that I misunderstood. I didn't want to live in 1.0-land. Although I did get 1.0 to build.

I will retry w/ master branch.

@cortfritz
Copy link
Author

getting odd error:
C:\Users\cofritz\Documents\GitHub\angular.js>bower install
bower no-json No bower.json file to save to, use bower init to create one

bower.json definitely exists.
{
"name": "AngularJS",
"devDependencies": {
"jquery": "1.10.2",
"lunr.js": "0.4.0",
"google-code-prettify": "1.0.0",
"components-font-awesome": "3.1.0",
"bootstrap": "https://raw.github.com/twbs/bootstrap/v2.0.2/docs/assets/bootstrap.zip",
"closure-compiler": "https://closure-compiler.googlecode.com/files/compiler-20130603.zip",
"ng-closure-runner": "https://raw.github.com/angular/ng-closure-runner/v0.2.2/assets/ng-closure-runner.zip"
}
}

@cortfritz
Copy link
Author

bower install wasn't doing anything (as described above)

presuming this was no longer a necessary step. (?)

went ahead w/ grunt package which completed (had to use --force to get around EPERM rename issue)

grunt test:e2e fails as follows:
C:\Users\cofritz\Documents\GitHub\angular.js>grunt test:e2e
npm WARN package.json [email protected] 'devDependences' should probably be 'devDependencies'
Running "connect:testserver" (connect) task
Started connect web server on 0.0.0.0:8000.

Running "tests:end2end" (tests) task
WARN [config]: "/" is proxied, you should probably change urlRoot to avoid conflicts
INFO [karma]: Karma v0.11.9 server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
WARN [watcher]: Pattern "C:/Users/cofritz/Documents/GitHub/angular.js/build/angular-scenario.js" does not match any file
.
WARN [watcher]: Pattern "C:/Users/cofritz/Documents/GitHub/angular.js/build/docs/docs-scenario.js" does not match any fi
le.
INFO [Chrome 31.0.1650 (Windows)]: Connected on socket kyvxjGsTuFzWEiYqN9ui with id 67643628
Chrome 31.0.1650 (Windows) ERROR
Uncaught ReferenceError: angular is not defined
at C:/Users/cofritz/Documents/GitHub/angular.js/node_modules/karma-ng-scenario/lib/adapter.js:93

Warning: Karma test(s) failed. Exit code: 1 Use --force to continue.

Aborted due to warnings.

@tbosch tbosch reopened this Dec 12, 2013
@tbosch
Copy link
Contributor

tbosch commented Dec 12, 2013

You have to run grunt test.
And yes, bower install is no more needed.

Could you try again?

@ghost ghost assigned petebacondarwin Jan 3, 2014
@tbosch
Copy link
Contributor

tbosch commented Jan 3, 2014

Assigning to @petebacondarwin as he has a Windows machine :-)

@cheahkhing
Copy link

i tested on my machine (windows7 64bit), still failing to install and compile.

Stack trace:
Error: EPERM, rename 'C:\Users\xxxxx\AppData\Local\Temp\xxxxx\bower\closure-compiler-7552-lUMVRc'

System info:
Bower version: 1.2.8
Node version: 0.10.22
OS: Windows_NT 6.1.7601 ia32

i also tried grunt package without bower, failing with the same error.
Not sure why, but it seems like a problem with "rename" something?

@angi-
Copy link

angi- commented Jan 16, 2014

I also tested on my Windows 7 64bit and I get the same EPERM warning when I run grunt to every version of AngularJS after 1.2.0 rc1. I last tested with v1.2.9:

Warning: EPERM, rename 'C:\Users\xxx\AppData\Local\Temp\xxx\bower\ng-closure-runner-9984-hZPTCF'
Use --force to continue.

What I was able to find by browsing the path is this: the user folder in C:\Users\ is not my current user, it looks like an old MS-DOS shortened version of it (ANGELI~1.SIR instead of angelin.sirbu), maybe this is significant somehow?

@jamesdaily
Copy link
Contributor

Similar issue here:

Warning: EPERM, rename 'C:\Users\JAMES_~1\AppData\Local\Temp\compname-username\bower\ng-closure-runner-5872-g0XI0D' Use --force to continue.

Edit: Nevermind, Pete figured it out: #5502 (comment)

(roll back to Bower version 1.2.6)

@pkozlowski-opensource
Copy link
Member

Duplicate of ttps://github.com//issues/5502

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

No branches or pull requests

8 participants