[jira] [Commented] (CB-7281) "cordova plugin add" issues nonsense EACCESS error

2014-08-29 Thread Luigi (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14115169#comment-14115169
 ] 

Luigi commented on CB-7281:
---

Let me add that using "sudo" to update cordova is what I've been done since 
ever without problems only now I got this issue... so it looks like 
something changed in the latest cordova version...

> "cordova plugin add" issues nonsense EACCESS error
> --
>
> Key: CB-7281
> URL: https://issues.apache.org/jira/browse/CB-7281
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugins
> Environment: ubuntu 14.04
>Reporter: teo
>
> On a freshly created test application targeted at android, which works fine.
> I ran:
> $ cordova plugin add nl.sylvain.cordova.osc
> Fetching plugin "nl.sylvain.cordova.osc" via plugin registry
> Error: EACCES, mkdir '/home/teo/tmp/npm-20870-r97koGWy'
> That doesn't make sense, as /home/teo is my home directory (I was running the 
> above command as "teo"). There's no reason why that mkdir command should get 
> an access denied error (if that's what EACCESS means).
> This worked:
> $ sudo cordova plugin add nl.sylvain.cordova.osc
> however, there's no reason why sudo should be needed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Comment Edited] (CB-7281) "cordova plugin add" issues nonsense EACCESS error

2014-08-29 Thread Luigi (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14115169#comment-14115169
 ] 

Luigi edited comment on CB-7281 at 8/29/14 11:48 AM:
-

Let me add that using "sudo" to update cordova is what I've been done since 
ever without problems only now, with the very last version, I got this 
issue... so it looks like something changed in the latest cordova version...


was (Author: lupa37):
Let me add that using "sudo" to update cordova is what I've been done since 
ever without problems only now I got this issue... so it looks like 
something changed in the latest cordova version...

> "cordova plugin add" issues nonsense EACCESS error
> --
>
> Key: CB-7281
> URL: https://issues.apache.org/jira/browse/CB-7281
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugins
> Environment: ubuntu 14.04
>Reporter: teo
>
> On a freshly created test application targeted at android, which works fine.
> I ran:
> $ cordova plugin add nl.sylvain.cordova.osc
> Fetching plugin "nl.sylvain.cordova.osc" via plugin registry
> Error: EACCES, mkdir '/home/teo/tmp/npm-20870-r97koGWy'
> That doesn't make sense, as /home/teo is my home directory (I was running the 
> above command as "teo"). There's no reason why that mkdir command should get 
> an access denied error (if that's what EACCESS means).
> This worked:
> $ sudo cordova plugin add nl.sylvain.cordova.osc
> however, there's no reason why sudo should be needed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-7281) "cordova plugin add" issues nonsense EACCESS error

2014-08-28 Thread Luigi (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113747#comment-14113747
 ] 

Luigi commented on CB-7281:
---

Yep

> "cordova plugin add" issues nonsense EACCESS error
> --
>
> Key: CB-7281
> URL: https://issues.apache.org/jira/browse/CB-7281
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugins
> Environment: ubuntu 14.04
>Reporter: teo
>
> On a freshly created test application targeted at android, which works fine.
> I ran:
> $ cordova plugin add nl.sylvain.cordova.osc
> Fetching plugin "nl.sylvain.cordova.osc" via plugin registry
> Error: EACCES, mkdir '/home/teo/tmp/npm-20870-r97koGWy'
> That doesn't make sense, as /home/teo is my home directory (I was running the 
> above command as "teo"). There's no reason why that mkdir command should get 
> an access denied error (if that's what EACCESS means).
> This worked:
> $ sudo cordova plugin add nl.sylvain.cordova.osc
> however, there's no reason why sudo should be needed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-7281) "cordova plugin add" issues nonsense EACCESS error

2014-08-28 Thread Luigi (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113650#comment-14113650
 ] 

Luigi commented on CB-7281:
---

Hi Marcel, of course using sudo when using Cordova is not advisable. Anyway the 
problem seems to be generated when INSTALLING cordova (or updating it). It 
seems the user tmp folder becomes owned by root

> "cordova plugin add" issues nonsense EACCESS error
> --
>
> Key: CB-7281
> URL: https://issues.apache.org/jira/browse/CB-7281
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugins
> Environment: ubuntu 14.04
>Reporter: teo
>
> On a freshly created test application targeted at android, which works fine.
> I ran:
> $ cordova plugin add nl.sylvain.cordova.osc
> Fetching plugin "nl.sylvain.cordova.osc" via plugin registry
> Error: EACCES, mkdir '/home/teo/tmp/npm-20870-r97koGWy'
> That doesn't make sense, as /home/teo is my home directory (I was running the 
> above command as "teo"). There's no reason why that mkdir command should get 
> an access denied error (if that's what EACCESS means).
> This worked:
> $ sudo cordova plugin add nl.sylvain.cordova.osc
> however, there's no reason why sudo should be needed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-7281) "cordova plugin add" issues nonsense EACCESS error

2014-08-25 Thread Luigi (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14109470#comment-14109470
 ] 

Luigi commented on CB-7281:
---

Same issue here.

It seems that once cordova is installed, updated through 
sudo npm install -g cordova

it changes owner to user tmp dir.

I just deleted it (after checking nothing relevant was there) and all went fine.

> "cordova plugin add" issues nonsense EACCESS error
> --
>
> Key: CB-7281
> URL: https://issues.apache.org/jira/browse/CB-7281
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugins
> Environment: ubuntu 14.04
>Reporter: teo
>
> On a freshly created test application targeted at android, which works fine.
> I ran:
> $ cordova plugin add nl.sylvain.cordova.osc
> Fetching plugin "nl.sylvain.cordova.osc" via plugin registry
> Error: EACCES, mkdir '/home/teo/tmp/npm-20870-r97koGWy'
> That doesn't make sense, as /home/teo is my home directory (I was running the 
> above command as "teo"). There's no reason why that mkdir command should get 
> an access denied error (if that's what EACCESS means).
> This worked:
> $ sudo cordova plugin add nl.sylvain.cordova.osc
> however, there's no reason why sudo should be needed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)