1

I am using this command to push component to salesforce sfdx force:source:push but nothing happens this issue comes.

Starting SFDX: Push Source to Default Scratch Org

14:12:52.362 sfdx force:source:push
ERROR:  EPERM: operation not permitted, mkdir 'C:\PROGRA~1\NODEJS~1\NODE_M~1\npm\bin\sdx_mdpkg_1546245791160'.
14:13:13.673 sfdx force:source:push ended with exit code 1

I created my web component with this https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/create-a-hello-world-lightning-web-component

  • Can you try running command prompt as System - Admin? – Pranay Jaiswal Dec 31 '18 at 9:09
  • yeah, I also try with that, having same issue ERROR: EPERM: operation not permitted, mkdir 'C:\PROGRA~1\NODEJS~1\NODE_M~1\npm\bin\sdx_mdpkg_1546247431711'. – Vaishali Garg Dec 31 '18 at 9:10
  • Can you type sfdx plugins to see what version of SFDX you are on? You should be on salesforcedx 45.0.12 (pre-release) version to use LWC – Pranay Jaiswal Dec 31 '18 at 9:12
  • salesforcedx 44.11.0 – Vaishali Garg Dec 31 '18 at 9:14
  • what to do? Not able to see custom component on Salesforce tab. after pushing web component to salesforce. sfdx force:source:push – Vaishali Garg Dec 31 '18 at 9:37
1

LWC can only be pushed on salesforcedx 45.0.12 (pre-release) version of Salesforce DX CLI. You have to update the CLI using the following command.

sfdx plugins:install salesforcedx@pre-release

Once the plugin is updated you will be able to push LWC into any Spring 19 or.

I would also recommend going though this trailhead to have a quick grasp.

Src: https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/set-up-salesforce-dx

  • one more question, same issue when i remove component from aura folder. and having web component in lws folder. sfdx force:source:push === Pushed Source No results found – Vaishali Garg Dec 31 '18 at 9:24
  • what to do? Not able to see custom component on Salesforce tab. after pushing web component to salesforce. sfdx force:source:push === Pushed Source STATE FULL NAME TYPE PROJECT PATH ───── ──────────────────────────────────────────────────── ──────────────────── ──────────────────────────────────────────────────────────────────────────────── Add helloWorldComponent\helloWorldComponent.auradoc – Vaishali Garg Dec 31 '18 at 9:33
  • i follow this one trailhead.salesforce.com/content/learn/projects/… but having same issue not able to see helloworld webcomponent on salesforce. – Vaishali Garg Dec 31 '18 at 9:41
  • 1
    Might worth asking new question with the code you have written. – Pranay Jaiswal Dec 31 '18 at 9:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.