Error Command failed with exit code 1

I got this

throw new ERR_INVALID_ARG_TYPE(name, ‘string’, value);

after running bench start, can anyone give me a clue!

 This is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`
01:57:46 web.1            |
01:57:51 web.1            |  * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
01:57:51 web.1            |  * Restarting with inotify reloader
01:57:51 watch.1          | yarn run v1.22.4
01:57:51 watch.1          | $ node rollup/watch.js
01:57:53 watch.1          | internal/validators.js:120
01:57:53 watch.1          |     throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
01:57:53 watch.1          |     ^
01:57:53 watch.1          |
01:57:53 watch.1          | TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
01:57:53 watch.1          |     at validateString (internal/validators.js:120:11)
01:57:53 watch.1          |     at Object.resolve (path.js:980:7)
01:57:53 watch.1          |     at get_rollup_options_for_css (/opt/erpnext/erpnext/apps/frappe/rollup/config.js:128:12)
01:57:53 watch.1          |     at get_rollup_options (/opt/erpnext/erpnext/apps/frappe/rollup/config.js:32:10)
01:57:53 watch.1          |     at /opt/erpnext/erpnext/apps/frappe/rollup/config.js:184:5
01:57:53 watch.1          |     at Array.map (<anonymous>)
01:57:53 watch.1          |     at get_options_for (/opt/erpnext/erpnext/apps/frappe/rollup/config.js:172:4)
01:57:53 watch.1          |     at get_watch_options (/opt/erpnext/erpnext/apps/frappe/rollup/watch.js:57:18)
01:57:53 watch.1          |     at /opt/erpnext/erpnext/apps/frappe/rollup/watch.js:21:24
01:57:53 watch.1          |     at Array.map (<anonymous>)
01:57:53 watch.1          |     at watch_assets (/opt/erpnext/erpnext/apps/frappe/rollup/watch.js:20:12)
01:57:53 watch.1          |     at Object.<anonymous> (/opt/erpnext/erpnext/apps/frappe/rollup/watch.js:16:1)
01:57:53 watch.1          |     at Module._compile (internal/modules/cjs/loader.js:1138:30)
01:57:53 watch.1          |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
01:57:53 watch.1          |     at Module.load (internal/modules/cjs/loader.js:986:32)
01:57:53 watch.1          |     at Function.Module._load (internal/modules/cjs/loader.js:879:14) {
01:57:53 watch.1          |   code: 'ERR_INVALID_ARG_TYPE'
01:57:53 watch.1          | }
01:57:53 watch.1          | error Command failed with exit code 1.
01:57:53 watch.1          | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Install only frappe, bench start is working find. Whenever I install erpnext any version it raise this error while bench start.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.