MarkLyck/restaurant-order-system

Errror: throw new ERR_INVALID_ARG_TYPE('options.cwd', 'string', options.cwd);

Opened this issue · 0 comments

When run npm start, I got this error. How to fix it?

> austin-tiy-build-tool@1.0.0 clean-scripts /home/bill/study/github/ozbillwang/restaurant-order-system
> if [ -f 'dist/main.js' ]; then rm dist/main.js; fi

child_process.js:422
    throw new ERR_INVALID_ARG_TYPE('options.cwd', 'string', options.cwd);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "options.cwd" property must be of type string. Received type function
    at normalizeSpawnArguments (child_process.js:422:11)
    at spawn (child_process.js:532:38)
    at /home/bill/study/github/ozbillwang/restaurant-order-system/node_modules/parallelshell/index.js:104:17
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/bill/study/github/ozbillwang/restaurant-order-system/node_modules/parallelshell/index.js:100:6)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! austin-tiy-build-tool@1.0.0 start: `npm run build && parallelshell 'npm run watch' 'npm run dev-server-watch'`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the austin-tiy-build-tool@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/bill/.npm/_logs/2019-04-12T05_23_01_550Z-debug.log