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 project generate.
1ERROR running project generate:  Command failed with ENOENT: npm root -g --prefix /Users/johndoe/Documents/sf_workspaces/.yo-repository --loglevel error
2spawnSync npm ENOENT

Answer: Install Node.js.