使用 Framework7 和 service.js 在本地主机中托管时出错

Error using Framework7 and service.js for hosting in the local host

当我点击 npm 运行 服务时。这个错误就是我得到的 我在以下 link 中使用了相同的应用程序: https://github.com/valnub/f7-node-autocomplete-search-demo

framework7-react-app-template@3.0.0 service C:\Users\Tallam Tharun Sai\auto-complete
PORT=3001 nodemon service/service.js

'PORT' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! framework7-react-app-template@3.0.0 service: `PORT=3001 nodemon service/service.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the framework7-react-app-template@3.0.0 service 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!     C:\Users\Tallam Tharun Sai\AppData\Roaming\npm-cache\_logs20-07-10T18_16_54_175Z-debug.log

答案是。

我已经从项目中删除了 Package.json 和 Node 模块,并再次按照步骤将 npm 安装为 (npm install)。

然后我就成功安装了我的 npm 应用程序。