-
Notifications
You must be signed in to change notification settings - Fork 47
Description
Hey guys,
"rm -rf dist && webpack --config webpack.config.js" is not working. The error states that "rm" is no valid command, but it should be. Full error message is:
22 verbose stack Error: command failed
22 verbose stack at ChildProcess. (C:\Users\ban7427\AppData\Roaming\npm\node_modules\npm\node_modules@npmcli\promise-spawn\index.js:69:27)
22 verbose stack at ChildProcess.emit (node:events:327:20)
22 verbose stack at maybeClose (node:internal/child_process:1048:16)
22 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:288:5)
23 verbose pkgid opentok-network-test-js@2.4.0
24 verbose cwd D:\Basisordner\Uni_Doktor\Testing\node_modules\opentok-network-test-js
25 verbose Windows_NT 10.0.17134
26 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\ban7427\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "build"
27 verbose node v15.0.1
28 verbose npm v7.0.6
29 error code 1
30 error path D:\Basisordner\Uni_Doktor\Testing\node_modules\opentok-network-test-js
31 error command failed
32 error command C:\WINDOWS\system32\cmd.exe /d /s /c "rm -rf dist && webpack --config webpack.config.js"
33 verbose exit 1
My node version is: 15.0.1
npm: 7.0.6
I cloned the main directory (opentok-network-test-js) and ran "npm install". This took some time and yielded some warnings, but I got no errors. The warnings were:
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: webpack@4.44.2
npm WARN node_modules/webpack
npm WARN dev webpack@"^4.12.0" from the root project
npm WARN 3 more (karma-webpack, terser-webpack-plugin, webpack-cli)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer webpack@"^1.0.0 || ^2.0.0 || ^3.0.0" from webpack-dev-middleware@1.12.2
npm WARN node_modules/webpack-dev-middleware
npm WARN webpack-dev-middleware@"^1.12.0" from karma-webpack@2.0.13
npm WARN node_modules/karma-webpack
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'karma-cli@1.0.1',
npm WARN EBADENGINE required: { node: '0.10 || 0.12 || 4 || 5 || 6' },
npm WARN EBADENGINE current: { node: 'v15.0.1', npm: '7.0.6' }
npm WARN EBADENGINE }
npm WARN deprecated @types/promise@7.1.30: Use the global Promise type instead.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated fs-promise@0.5.0: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated request@2.88.0: request has been deprecated, see request/request#3142
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
Do you have any suggestions, what I am doing wrong?
I also tried to run "npm install opentok-network-test-js", open the opentok-network-test-js directory inside these node_modules and ran "npm install" in there. Similar results.
I am thankful for any help.