{ "id": "175832", "key": "TIMOB-28257", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2020-11-25T17:37:57.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "21142", "name": "titanium 5.3.0", "archived": false, "released": true, "releaseDate": "2020-10-22" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2020-11-26T10:40:55.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "h5.Description\r\n\r\nWhen installing an SDK on Windows an EPERM error occurs when extracting the SDK, this is happening due to us now respecting symlinks on extraction. By default symlinks require administrator access to be created, or for [developer mode|https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development] to be enabled.\r\n\r\nI think internally the SDK extraction code needs to check if we're on Windows and pass a type of {{junction}} to the symlink call\r\n\r\nTo workaround this, run command prompt as an administrator and it will install just fine", "attachment": [], "flagged": false, "summary": "CLI: EPERM error when installing an SDK on Windows", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "comment": { "comments": [ { "id": "457727", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Note to self, junction wont work as it's only for directories. We probably just want to copy the files", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-11-25T18:11:12.000+0000", "updated": "2020-11-25T18:11:12.000+0000" }, { "id": "457731", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Can't copy the files directly as it's possible that we extract the symlink-ed file before we extract the source file. So we either need to just ignore symlinks completely on Windows, or defer the copy until we extract the source file later on", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-11-26T10:40:55.000+0000", "updated": "2020-11-26T10:40:55.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }