Newer Version Available

This content describes an older version of this product. View Latest

Error: Command Failed with ENOENT

After recently installing Salesforce CLI, you get this error when you run a command such as force:project:create.
1ERROR running force:project:create:  Command failed with ENOENT: npm root -g --prefix /Users/johndoe/Documents/sfdx_workspaces/.yo-repository --loglevel error
2spawnSync npm ENOENT

Answer: Install Node.js.