dynamicweb / CLI

CLI for Dynamicweb 10 automation in development, builds and deployment scenarios
4 stars 2 forks source link

Installation guide is missing step to install yargs #5

Closed Imar closed 2 years ago

Imar commented 2 years ago

When you follow the docs at https://github.com/dynamicweb/CLI on a machine without yargs you'll get an error when running the dw help command:

node:internal/errors:464 ErrorCaptureStackTrace(err); ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'yargs' imported from D:\Projects\Dynamicweb\Cli\bin\index.js ←[90m at new NodeError (node:internal/errors:371:5)←[39m ←[90m at packageResolve (node:internal/modules/esm/resolve:884:9)←[39m ←[90m at moduleResolve (node:internal/modules/esm/resolve:929:18)←[39m ←[90m at defaultResolve (node:internal/modules/esm/resolve:1044:11)←[39m ←[90m at ESMLoader.resolve (node:internal/modules/esm/loader:422:30)←[39m ←[90m at ESMLoader.getModuleJob (node:internal/modules/esm/loader:222:40)←[39m ←[90m at ModuleWrap. (node:internal/modules/esm/module_job:76:40)←[39m ←[90m at link (node:internal/modules/esm/module_job:75:36)←[39m { code: ←[32m'ERR_MODULE_NOT_FOUND'←[39m }

This can be fixed by running:

npm i yargs

Can this be added to the manual? More details here: https://doc.dynamicweb.com/forum?PID=1605&ThreadID=84233

Imar