Roots Discourse

Operation not permitted, copyfile

Hi,

I just created a WSL on my Windows computer, i have follow this tutorial :
https://roots.io/docs/getting-started/windows/

I create a bedrock project without problem. I also install a sage theme in me theme folder.
Then when i type “yarn” i got the following error :

error An unexpected error occurred: “EPERM: operation not permitted, copyfile ‘/home/florent/.cache/yarn/v6/npm-acorn-dynamic-import-2.0.2-c752bd210bef679501b6c6cb7fc84f8f47158cc4-integrity/node_modules/acorn-dynamic-import/README.md’ -> ‘/mnt/d/Developpement/florent-vandroy/web/app/themes/florent-vandroy/node_modules/acorn-dynamic-import/README.md’”.

If someone can help me.
Thank’s you.

Have you installed yarn as root (sudo) and using it now as normal user?

I used

npm install --global yarn

And non im just using yarn as default user

Maybe this helps:

  • Check if there are node processes running, stop them and try again
  • Uncheck ‘read only’ from properties of the node modules folder (right click - properties)
  • Run cmd as an administrator (right click - run as administrator)
  • Try rebooting your pc

I just installed yarn with sudo apt-get install yarn and it’s now working.

I got the following error now when using yarn start

You did not set any plugins, parser, or stringifier. Right now, PostCSS does nothing. Pick plugins for your case on https://www.postcss.parts/ and use them in postcss.config.js.

I don’t have CSS generated files and the localhost opened in my tab reload infinite.

Did you run yarn before yarn start?

Yes, yarn doesn’t have problem. Yarn build work too

Maybe this will get you further:

I don’t have anymore this error :

You did not set any plugins, parser, or stringifier. Right now, PostCSS does nothing. Pick plugins for your case on https://www.postcss.parts/ and use them in postcss.config.js.

But my loading still infinite

I got a lot of problem too.
I prefer to fix the current problem for the moment.

When i yarn build,

i got this :

yarn run v1.22.10
$ webpack --hide-modules --watch --config resources/assets/build/webpack.config.js

Webpack is watching the files…

You did not set any plugins, parser, or stringifier. Right now, PostCSS does nothing. Pick plugins for your case on https://www.postcss.parts/ and use them in postcss.config.js.


 DONE  Compiled successfully in 50649ms                                                                       2:39:42 AM

[HTML Injector] Running...
[Browsersync] Proxying: http://florent-vandroy.test
[Browsersync] Access URLs:
 ---------------------------------------
       Local: http://localhost:3000
    External: http://192.168.27.196:3000
 ---------------------------------------
          UI: http://localhost:3001
 UI External: http://localhost:3001
 ---------------------------------------
[Browsersync] Watching files...


 DONE  Compiled successfully in 3611ms

When i go to the UI, it’s work perfectly.

But the Local & External server don’t work (infinite loading). My proxying work’s well.
I’m using Laragon on my computer but use a WSL for terminal. (composer & yarn)

I finally bought a MacBook Pro. I got one really cheap and i don’t have problem anymore on it.