Help Center/ Meeting/ Client SDK Reference/ FAQs/ [Electron] What Do I Do If the Error Message "permission denied" Is Displayed When I Install an Environment on macOS?
Updated on 2022-07-11 GMT+08:00

[Electron] What Do I Do If the Error Message "permission denied" Is Displayed When I Install an Environment on macOS?

Customer Case

A customer has integrated the Electron SDK. When the required environment is installed, the message "permission denied" is displayed.

Cause Analysis

File permission issue.

Solution

Run the chmod command, for example, chmod 777 XXX, to modify the permission of the error file. Alternatively, add the --unsafe-perm=true --allow-root parameter when installing the dependency package.

For example, npm install -electron@13.6.7 –g --unsafe-perm=true --allow-root.