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
Related
Node version: 10.13.0
npm version: 6.4.1
Output from running the test:
$ npm run e2e
> protractor e2e/protractor.conf.js
[15.11.04] W/launcher - You have specified both capabilitties and multicapabilities. This will result in capabilities being ignored
[15.11.04] W/launcher - Running 1 Instances of Webdriver
[15.11.04] W/launcher - Ignoring uncaught error: Server terminated early with status 0
[15.11.08] W/launcher - BUG: Launcher exited with 1 tasks remaining
npm verb stack Error: 'protractor test/protractor.conf.js'
npm verb stack Exit status 100
Chrome navigator version: 87.0.4280
Selenium server Standalone version:
npm install http://path/selenim-server-3.141.59.tgz
chromedriver version:
npm install http://path/chromdriver-2.46.0.tgz
first thing I see is
You have specified both capabilitties and multicapabilities. This will result in capabilities being ignored
Make sure it is not causing your problem
Second, chromdriver-2.46.0.tgz is not the right version to control chrome 87.0.4280.
Check this page for the chromdriver version you need https://chromedriver.storage.googleapis.com/LATEST_RELEASE_87.0.4280
why webdriver-update command not found although protractor is installed ?
i installed protractor node as
sudo npm install protractor -g
and when i try to make
sudo webdriver-manager update
it return with
sudo: webdriver-manager: command not found
i tried also to install it manually but i failed to do.
tamer#tamer-Inspiron-N5110:/media/tamer/Work/conFusion/test$ protractor protractor.conf.js
[15:23:48] I/direct - Using ChromeDriver directly...
[15:23:48] I/launcher - Running 1 instances of WebDriver
[15:23:48] E/direct - Error code: 135
[15:23:48] E/direct - Error message: Could not find chromedriver at /home/tamer/.npm-global/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.22
[15:23:48] E/direct - Error: Could not find chromedriver at /home/tamer/.npm-global/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.22
at Direct.getNewDriver (/home/tamer/.npm-global/lib/node_modules/protractor/built/driverProviders/direct.js:65:27)
at Runner.createBrowser (/home/tamer/.npm-global/lib/node_modules/protractor/built/runner.js:198:43)
at /home/tamer/.npm-global/lib/node_modules/protractor/built/runner.js:277:30
at _fulfilled (/home/tamer/.npm-global/lib/node_modules/protractor/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/home/tamer/.npm-global/lib/node_modules/protractor/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/home/tamer/.npm-global/lib/node_modules/protractor/node_modules/q/q.js:796:13)
at /home/tamer/.npm-global/lib/node_modules/protractor/node_modules/q/q.js:556:49
at runSingle (/home/tamer/.npm-global/lib/node_modules/protractor/node_modules/q/q.js:137:13)
at flush (/home/tamer/.npm-global/lib/node_modules/protractor/node_modules/q/q.js:125:13)
at nextTickCallbackWith0Args (node.js:420:9)
[15:23:48] E/launcher - Process exited with error code 135
tamer#tamer-Inspiron-N5110:/media/tamer/Work/conFusion/test$ sudo webdriver-manager update
[sudo] password for tamer:
sudo: webdriver-manager: command not found
Root Causes of your issue might Node REPL unable to pick up the installed node_module
Can you try one of below and see
In order to make modules available to the Node.js REPL, it might be useful to add <</usr/lib>>/node_modules folder to the $NODE_PATH environment variable.
Refer here for more info
Goto .\node_modules\protractor\bin and execute the webdriver-manager trigger script directly.
node webdriver-manager update
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
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.
Attempted Project: https://github.com/yearofmoo/angularjs-seed-repo
Environment:
Windows 7 64-bit
NodeJS v 0.10.24
Protractor v 0.16.1
grunt v0.4.2
grunt-cli v0.1.11
Notes:
For selenium, install_selenium_standalone has been replaced by webdriver-manager binary around 12/2/13 according to [Julie's post][1]. This seems to be related to the issue.
Also, git must be installed in the project directory and npm install must be run using Git Bash in Windows.
Error in Git Bash:
$ grunt test:e2e --debug
Running "connect:testserver" (connect) task
[D] Task source: c:\nodejs-0.10.24\node_modules\grunt-contrib-connect\tasks\conn
ect.js
Started connect web server on 127.0.0.1:9999.
Running "protractor:singlerun" (protractor) task
[D] Task source: c:\nodejs-0.10.24\node_modules\grunt-protractor-runner\tasks\pr
otractor_runner.js
Starting selenium standalone server...
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)
>
Fatal error: protractor exited with code: 8
Java is required to run selenium, so it seems You don't have any.