在 4.3.1 版的 restful_server 示例中找不到 npm

gavinl
Posts: 24
Joined: Fri Oct 22, 2021 5:53 pm

在 4.3.1 版的 restful_server 示例中找不到 npm

Postby gavinl » Thu Oct 28, 2021 5:38 pm

从 Eclipse 输出:
CMake Error at main/CMakeLists.txt:10 (message):
C:/esp-431/ws431/restful_server/main/../front/web-demo/dist doesn't exit.
Please run 'npm run build' in
C:/esp-431/ws431/restful_server/main/../front/web-demo

ESP-IDF 4.3 CMD:
C:\esp-431\ws431\restful_server\front\web-demo>npm install
'npm' is not recognized as an internal or external command,
operable program or batch file.

gavinl
Posts: 24
Joined: Fri Oct 22, 2021 5:53 pm

Re: 在 4.3.1 版的 restful_server 示例中找不到 npm

Postby gavinl » Thu Oct 28, 2021 6:55 pm

36 / 5000
Translation results
安装npm后弹出这个错误

C:\esp-431\ws431\restful_server\front\web-demo>npm run build

> web-demo@0.1.0 build
> vue-cli-service build


| Building for production...

ERROR Failed to compile with 1 error 2:30:43 p.m.
error in ./src/main.js

Syntax Error: Thread Loader (Worker 0)
Failed to load plugin import: Cannot find module 'eslint-plugin-import'
Require stack:
- C:\esp-431\ws431\restful_server\front\web-demo\node_modules\eslint\lib\config\plugins.js
- C:\esp-431\ws431\restful_server\front\web-demo\node_modules\eslint\lib\config.js
- C:\esp-431\ws431\restful_server\front\web-demo\node_modules\eslint\lib\cli-engine.js
- C:\esp-431\ws431\restful_server\front\web-demo\node_modules\eslint\lib\api.js
- C:\esp-431\ws431\restful_server\front\web-demo\node_modules\@vue\cli-plugin-eslint\node_modules\eslint-loader\index.js- C:\esp-431\ws431\restful_server\front\web-demo\node_modules\loader-runner\lib\loadLoader.js
- C:\esp-431\ws431\restful_server\front\web-demo\node_modules\loader-runner\lib\LoaderRunner.js
- C:\esp-431\ws431\restful_server\front\web-demo\node_modules\thread-loader\dist\worker.js
Referenced from: C:\esp-431\ws431\restful_server\front\web-demo\node_modules\@vue\eslint-config-standard\index.js
Referenced from: C:\esp-431\ws431\restful_server\front\web-demo\.eslintrc.js
at Array.forEach (<anonymous>)
at Array.reduceRight (<anonymous>)


@ multi ./src/main.js

ERROR Build failed with errors.

C:\esp-431\ws431\restful_server\front\web-demo>

Who is online

Users browsing this forum: No registered users and 152 guests