The Welkin Suite Forum

Creating SFDX Project



Creating SFDX Project

  • Please log in to reply

#1
windows version welkinsuite

subr1710

    Posted 04 Feb 2020 and edited 17 Mar 2020

    Unable to create a SFDX project.

    Version: 1.32.2.4

    The Welkin Suite Bloom R35.

    { Error: EPERM: operation not permitted, mkdir 'force-app'
    at Object.mkdirSync (fs.js:752:3)
    at makeEmptyFolders (C:\Users\ss0616\AppData\Local\sfdx\node_modules\salesforcedx-templates\lib\generators\projectGenerator.js:104:16)
    at ProjectGenerator.writing (C:\Users\ss0616\AppData\Local\sfdx\node_modules\salesforcedx-templates\lib\generators\projectGenerator.js:69:13)
    at Object.<anonymous> (C:\Users\ss0616\AppData\Local\sfdx\node_modules\yeoman-generator\lib\index.js:437:23)
    at C:\Users\ss0616\AppData\Local\sfdx\node_modules\run-async\index.js:25:25
    at new Promise (<anonymous>)
    at C:\Users\ss0616\AppData\Local\sfdx\node_modules\run-async\index.js:24:19
    at self.env.runLoop.add.completed (C:\Users\ss0616\AppData\Local\sfdx\node_modules\yeoman-generator\lib\index.js:438:9)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    errno: -4048,
    syscall: 'mkdir',
    code: 'EPERM',
    path: 'force-app' }
    { Error: EPERM: operation not permitted, mkdir 'force-app'
    at Object.mkdirSync (fs.js:752:3)
    at makeEmptyFolders (C:\Users\ss0616\AppData\Local\sfdx\node_modules\salesforcedx-templates\lib\generators\projectGenerator.js:104:16)
    at ProjectGenerator.writing (C:\Users\ss0616\AppData\Local\sfdx\node_modules\salesforcedx-templates\lib\generators\projectGenerator.js:69:13)
    at Object.<anonymous> (C:\Users\ss0616\AppData\Local\sfdx\node_modules\yeoman-generator\lib\index.js:437:23)
    at C:\Users\ss0616\AppData\Local\sfdx\node_modules\run-async\index.js:25:25
    at new Promise (<anonymous>)
    at C:\Users\ss0616\AppData\Local\sfdx\node_modules\run-async\index.js:24:19
    at self.env.runLoop.add.completed (C:\Users\ss0616\AppData\Local\sfdx\node_modules\yeoman-generator\lib\index.js:438:9)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    errno: -4048,
    syscall: 'mkdir',
    code: 'EPERM',
    path: 'force-app' }

    I think the IDE is probably holding a lock on the file-system object, blocking it from being updated.



    Attached Files


    9 replies to this topic

    #2

    ihor.zhabolenko

      Posted 05 Feb 2020

      Hello Mani!


      Thank you for your post!


      It is not issued on our side, but I would like to help you to resolve this problem and I have found one possible solution for this: here or here.


      I hope it helps!


      Best Regards,

      Ihor





      TWS Team


      #3

      kransom123

        Posted 18 Feb 2020

        Im also getting this same issue. Any luck with finding a solution? the cli SDFX works perfectly is im not in Welkin Suite



        #4

        ihor.zhabolenko

          Posted 19 Feb 2020

          Hello Keith!


          Thank you for your post!

          I kindly ask you to reproduce this one more time and please send us a bug report with attached log files directly from the IDE - you can find this functionality in the menu Help -> Report a Bug, please specify your email and enable the 'Attach Log File' checkbox.


          This way we would receive your TWS log files which could help us to find a reason for the error.


          Best Regards,

          Ihor


          TWS Team


          #5

          subr1710

            Posted 24 Feb 2020

             @kranson123: Not really. Had to finally reimage my system to remove the lock on the file-system object.frown



            #6

            ihor.zhabolenko

              Posted 25 Feb 2020

              Hello Mani!


              Thank you for your advice. I hope it can help Keith too.


              If you have any other questions, just let us know we will be happy to help!


              Kind Regards,

              Ihor


              TWS Team


              #7

              jonathan.coombs

                Posted 13 Mar 2020

                I am having the same issue on Mac. No way am I going to reimage my system.

                Is there a particular user that the Welkin Suite runs as? Could ensure that this user has permissions to the correct directories.

                Failed to create SFDX project


                { Error: EACCES: permission denied, mkdir 'force-app'
                at Object.mkdirSync (fs.js:752:3)
                at makeEmptyFolders (/usr/local/lib/sfdx/node_modules/salesforcedx-templates/lib/generators/projectGenerator.js:104:16)
                at ProjectGenerator.writing (/usr/local/lib/sfdx/node_modules/salesforcedx-templates/lib/generators/projectGenerator.js:69:13)
                at Object.<anonymous> (/usr/local/lib/sfdx/node_modules/salesforcedx-templates/node_modules/yeoman-generator/lib/index.js:395:23)
                at /usr/local/lib/sfdx/node_modules/run-async/index.js:25:25
                at new Promise (<anonymous>)
                at /usr/local/lib/sfdx/node_modules/run-async/index.js:24:19
                at self.env.runLoop.add.completed (/usr/local/lib/sfdx/node_modules/salesforcedx-templates/node_modules/yeoman-generator/lib/index.js:396:9)
                at runCallback (timers.js:705:18)
                at tryOnImmediate (timers.js:676:5)
                errno: -13,
                syscall: 'mkdir',
                code: 'EACCES',
                path: 'force-app' }
                { Error: EACCES: permission denied, mkdir 'force-app'
                at Object.mkdirSync (fs.js:752:3)
                at makeEmptyFolders (/usr/local/lib/sfdx/node_modules/salesforcedx-templates/lib/generators/projectGenerator.js:104:16)
                at ProjectGenerator.writing (/usr/local/lib/sfdx/node_modules/salesforcedx-templates/lib/generators/projectGenerator.js:69:13)
                at Object.<anonymous> (/usr/local/lib/sfdx/node_modules/salesforcedx-templates/node_modules/yeoman-generator/lib/index.js:395:23)
                at /usr/local/lib/sfdx/node_modules/run-async/index.js:25:25
                at new Promise (<anonymous>)
                at /usr/local/lib/sfdx/node_modules/run-async/index.js:24:19
                at self.env.runLoop.add.completed (/usr/local/lib/sfdx/node_modules/salesforcedx-templates/node_modules/yeoman-generator/lib/index.js:396:9)
                at runCallback (timers.js:705:18)
                at tryOnImmediate (timers.js:676:5)
                errno: -13,
                syscall: 'mkdir',
                code: 'EACCES',
                path: 'force-app' }



                #8

                ihor.zhabolenko

                  Posted 16 Mar 2020

                  Hi Jonathan.


                  Could you please remove the IDE and sfdx CLI and try to install one more time via the installer from the website?


                  Also, could you please reproduce this one more time and please send us a bug report with attached log files directly from the IDE - you can find this functionality in the menu Help -> Report a Bug, please specify your email and enable the 'Attach Log File' checkbox.
                  This way we would receive your TWS log files which could help us to find a reason for the error.


                  Kind Regards,

                  Ihor





                  TWS Team


                  #9

                  jonathan.coombs

                    Posted 16 Mar 2020

                    Ihor,

                    I was able to successfully create a project after reinstalling the Welkin Suite with the sfdx cli install along with it.

                    Thanks,

                    Jonathan



                    #10

                    ihor.zhabolenko

                      Posted 17 Mar 2020

                      Hi Jonathan.


                      Thank you for your update.

                      If you have any other questions, just let us know I will be happy to help you!


                      Take care!

                      Ihor


                      TWS Team





                      Boost Your Productivity. Get Started Today

                      Try Free Trial