I am getting this error, while creating a project. What could be the reason?

$ sfdx force:project:create -n mysfdxproj
 !    Unexpected token '<' at 7:1 in ..\package.json
 !    <!DOCTYPE html>
  • 1
    You got an HTML file instead of a JSON file. Let me check real quick. – sfdcfox Oct 18 '17 at 19:57
  • Try updating your CLI: sfdx update, then try your request again. – sfdcfox Oct 18 '17 at 20:25
  • $ sfdx update sfdx-cli: Updating CLI... already on latest version: 6.0.9-3391781 sfdx-cli: Updating plugins... done – Ajay Oct 18 '17 at 20:59
  • @sfdcfox, I already have the updated one. – Ajay Oct 18 '17 at 20:59

There was an issue with D drive. I tried creating workspace in C drive, everything works great. However the error was unclear, and somehow figured it out.

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.