我的计算机损坏了,所以我使用的是我躺下的其他设备。我已经安装了node.js,然后打开了我的项目,并同时运行npm i react-scripts
和npm install
来安装我项目的所有组件。
但是当我运行npm start
时,我不断收到我不理解的错误。这是日志:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at validateString (internal/validators.js:117:11)
at Object.join (path.js:375:7)
at noopServiceWorkerMiddleware (C:\Users\Assaf Tzabary\Documents\coding\name-generator\node_modules\react-dev-utils\noopServiceWorkerMiddleware.js:14:26)
at Layer.handle [as handle_request] (C:\Users\Assaf Tzabary\Documents\coding\name-generator\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\Users\Assaf Tzabary\Documents\coding\name-generator\node_modules\express\lib\router\index.js:317:13)
at C:\Users\Assaf Tzabary\Documents\coding\name-generator\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\Users\Assaf Tzabary\Documents\coding\name-generator\node_modules\express\lib\router\index.js:335:12)
at next (C:\Users\Assaf Tzabary\Documents\coding\name-generator\node_modules\express\lib\router\index.js:275:10)
at launchEditorMiddleware (C:\Users\Assaf Tzabary\Documents\coding\name-generator\node_modules\react-dev-utils\errorOverlayMiddleware.js:20:7)
at Layer.handle [as handle_request] (C:\Users\Assaf Tzabary\Documents\coding\name-generator\node_modules\express\lib\router\layer.js:95:5)
此单元以前从未用于任何类型的编码,所以我想知道也许应该安装一些东西,但是没有吗?我不知道那可能是什么。
它说与路由器有关吗?但是我看到路由器软件包安装在我的node modules
中。