cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-11378) Can't create project
Date Sat, 15 Jul 2017 03:39:01 GMT

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

Filip Maj commented on CB-11378:
--------------------------------

I'm going to guess it's because node or npm was installed into the admin user directory, but
cordova is not being run with Administrator privileges. If that's the case, that error would
be expected. 

[~jmail] can you confirm?

> Can't create project
> --------------------
>
>                 Key: CB-11378
>                 URL: https://issues.apache.org/jira/browse/CB-11378
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli
>    Affects Versions: 6.2.0
>         Environment: Windows 10 Pro
>            Reporter: Jarek Krzemienski
>            Assignee: Sergey Shakhnazarov
>            Priority: Critical
>              Labels: regression, triaged
>
> I am trying to create new project after cordova upgrade to 6.2.0 and I can't do that
with error:
> {code}
> c:\mobile_apps\projectFolder>cordova create dirName com.example.name ProjectName
> C:\Users\admin\AppData\Roaming\npm\node_modules\cordova\node_modules\configstore\index.js:69
>                                 throw err;
>                                 ^
> Error: EPERM: operation not permitted, rename 'C:\Users\admin\.config\configstore\insight-cordova.json.1159948568'
-> 'C:\Users\admin\.config\configstore\insight-cordova.json'
>     at Error (native)
>     at Object.fs.renameSync (fs.js:729:18)
>     at Function.writeFileSync [as sync] (C:\Users\admin\AppData\Roaming\npm\node_modules\cordova\node_modules\write-file-atomic\index.js:39:8)
>     at Object.create.all.set (C:\Users\admin\AppData\Roaming\npm\node_modules\cordova\node_modules\configstore\index.js:62:21)
>     at Object.Configstore (C:\Users\admin\AppData\Roaming\npm\node_modules\cordova\node_modules\configstore\index.js:27:11)
>     at new Insight (C:\Users\admin\AppData\Roaming\npm\node_modules\cordova\node_modules\insight\lib\index.js:38:34)
>     at Object.<anonymous> (C:\Users\admin\AppData\Roaming\npm\node_modules\cordova\src\telemetry.js:37:15)
>     at Module._compile (module.js:413:34)
>     at Object.Module._extensions..js (module.js:422:10)
>     at Module.load (module.js:357:32)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message