Sage 9 | Bootstrap 4
Hi All,
After running ‘yarn run start’ or ‘yarn run build’ i receive an error:
$ webpack --hide-modules --watch --config resources/assets/build/webpack.config.js
C:\wamp64\www\quartz\wp-content\themes\quartz\node_modules\webpack\bin\webpack.js:348
throw err;
^
Error: EPERM: operation not permitted, lstat ‘C:\wamp64\www\quartz\wp-content\themes\quartz\dist’
at Object.fs.lstatSync (fs.js:941:11)
at Function.rimrafSync [as sync] (C:\wamp64\www\quartz\wp-content\themes\quartz\node_modules\rimraf\ri
mraf.js:291:24)
at C:\wamp64\www\quartz\wp-content\themes\quartz\node_modules\clean-webpack-plugin\index.js:164:16
at Array.forEach ()
at CleanWebpackPlugin.clean (C:\wamp64\www\quartz\wp-content\themes\quartz\node_modules\clean-webpack-
plugin\index.js:90:15)
at CleanWebpackPlugin.apply (C:\wamp64\www\quartz\wp-content\themes\quartz\node_modules\clean-webpack-
plugin\index.js:197:20)
at Compiler.apply (C:\wamp64\www\quartz\wp-content\themes\quartz\node_modules\tapable\lib\Tapable.js:3
75:16)
at webpack (C:\wamp64\www\quartz\wp-content\themes\quartz\node_modules\webpack\lib\webpack.js:33:19)
at processOptions (C:\wamp64\www\quartz\wp-content\themes\quartz\node_modules\webpack\bin\webpack.js:3
35:15)
at yargs.parse (C:\wamp64\www\quartz\wp-content\themes\quartz\node_modules\webpack\bin\webpack.js:396:
2)
at Object.Yargs.self.parse (C:\wamp64\www\quartz\wp-content\themes\quartz\node_modules\webpack\node_mo
dules\yargs\yargs.js:533:18)
at Object. (C:\wamp64\www\quartz\wp-content\themes\quartz\node_modules\webpack\bin\webpack.
js:152:7)
at Module._compile (module.js:643:30)
at Object.Module._extensions…js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Function.Module.runMain (module.js:684:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: C:\WINDOWS\system32\cmd.exe
Arguments: /d /s /c webpack --hide-modules --watch --config resources/assets/build/webpack.config.js
Directory: C:\wamp64\www\quartz\wp-content\themes\quartz
Output:
".
info If you think this is a bug, please open a bug report with the information provided in “C:\wamp64\ww
w\quartz\wp-content\themes\quartz\yarn-error.log”.
info Visit yarn run | Yarn for documentation about this command.
I thought I should try deleting the /dist folder then re-running yarn run build, but I’m unable to delete the /dist folder. An error shows up that says I don’t have permissions.
When running ‘ls -l’ in gitbash it reports the permissions for the /dist folder as drwxr-xr-x (don’t know my folder permissions too well, but I think that means /dist should be writable?). As it stands, I can’t compile my project because dist can’t be written to.
I look forward to any suggested solutions! Thank you!