Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run ember CLI commands in the addon on Windows #325

Open
lolmaus opened this issue Jun 23, 2019 · 7 comments
Open

Can't run ember CLI commands in the addon on Windows #325

lolmaus opened this issue Jun 23, 2019 · 7 comments

Comments

@lolmaus
Copy link

lolmaus commented Jun 23, 2019

lolmaus@WALDECK MINGW64 /c/Code/ember-component-css (master)
$ ember help g unit-test
C:\Code\ember-component-css\node_modules\ember-cli\lib\models\project.js:708
        throw reason;
        ^

Error: EPERM: operation not permitted, stat 'C:\Code\ember-component-css\node_modules\no-style-files-yet'
    at Object.statSync (fs.js:851:3)
    at Object.statSync (C:\Code\ember-component-css\node_modules\graceful-fs\polyfills.js:295:24)
    at getRealFilePath (C:\Code\ember-component-css\node_modules\ember-cli\lib\models\package-info-cache\index.js:38:19)
    at entries.forEach.entryName (C:\Code\ember-component-css\node_modules\ember-cli\lib\models\package-info-cache\index.js:727:11)
    at Array.forEach (<anonymous>)
    at PackageInfoCache._readNodeModulesList (C:\Code\ember-component-css\node_modules\ember-cli\lib\models\package-info-cache\index.js:715:13)
    at PackageInfoCache._readPackage (C:\Code\ember-component-css\node_modules\ember-cli\lib\models\package-info-cache\index.js:644:30)
    at PackageInfoCache.loadProject (C:\Code\ember-component-css\node_modules\ember-cli\lib\models\package-info-cache\index.js:251:24)
    at new Project (C:\Code\ember-component-css\node_modules\ember-cli\lib\models\project.js:87:47)
    at Function.closestSync (C:\Code\ember-component-css\node_modules\ember-cli\lib\models\project.js:686:12)
@lolmaus
Copy link
Author

lolmaus commented Jun 23, 2019

Removing the readonly flag and resetting permissions does not help.

Happens even in a privileged terminal.

@webark
Copy link
Owner

webark commented Jun 24, 2019

@webark
Copy link
Owner

webark commented Jun 24, 2019

and i don’t understand this path in the error

C:\Code\ember-component-css\node_modules\no-style-files-yet

@webark
Copy link
Owner

webark commented Jun 24, 2019

@webark
Copy link
Owner

webark commented Jun 24, 2019

@webark
Copy link
Owner

webark commented Jun 24, 2019

yea, i modeled that after https://github.com/ember-engines/ember-engines/blob/master/bin/install-test-addons.js, but should find a different way it looks like.

@webark
Copy link
Owner

webark commented Jun 24, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants