-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
Do you want to request a feature or report a bug?
bug (regression?)
What is the current behavior?
yarn add global fails with EPERM: operation not permitted
If the current behavior is a bug, please provide the steps to reproduce.
- install yarn using MSI on windows 10 x64
- do
yarn init
and thenyarn global add codeceptjs
What is the expected behavior?
same as npm -g install codeceptjs
i.e. install the package globally without errors
Please mention your node.js, yarn and operating system version.
nodejs v7.8
yarn v0.22.0
windows 10 pro x64
Stacktrace:
yarn init v0.22.0
question name (shaadi-try):
question version (1.0.0):
question description:
question entry point (index.js):
question repository url:
question author:
question license (MIT):
success Saved package.json
Done in 4.13s.
C:\my-home\AutomationProjects\CodeceptProjects\shaadi-try>yarn global add codeceptjs
yarn global v0.22.0
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "codeceptjs@0.5.1" with binaries:
- codeceptjs
error An unexpected error occurred: "EPERM: operation not permitted, open 'C:\\Program Files\\nodejs\\codeceptjs.cmd'".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\Dheeraj\\AppData\\Local\\Yarn\\config\\global\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
yarn error log:
https://gist.github.com/dheerajbhaskar/07cdc55e1d80282c4782f948638fa7c4