Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error 'rm' is not recognized as an internal or external command, operable program or batch file. when running the node server #140

Closed
1 task done
anilshivaraj opened this issue Oct 17, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@anilshivaraj
Copy link

anilshivaraj commented Oct 17, 2023

Summary

I am following the steps explained, but getting a error as 'rm' is not recognized as an internal or external command,
operable program or batch file. when running server with npm start. I have the dependency installed, not sure whats causing the issue.

Did some search where some blogs mention that it might be because of bash scripts. I am using a windows laptop
Capture

Steps To Reproduce

Followed the steps exactly mentioned

  • Create a .env file at the root of the ebikes-manufacturing project
  • Updated the property values by referring to the configuration reference section
  • Install the project with npm install
  • Run the project with npm start

Current Behavior

Error generated and node server not starting
Capture

Expected Behavior

No response

Relevant Log Output

PS C:\Users\anils1\Documents\code\ebikes-manufacturing> npm install
npm WARN deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated iltorb@2.4.5: The zlib module provides APIs for brotli compression/decompression starting with Node.js v10.16.0, please use it over iltorb

> lwc-oss-manufacturing@1.0.0 preinstall
> rm -fr src/client/assets/dependencies

'rm' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code 1
npm ERR! path C:\Users\anils1\Documents\code\ebikes-manufacturing
npm ERR! command C:\windows\system32\cmd.exe /d /s /c rm -fr src/client/assets/dependencies

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\anils1\AppData\Local\npm-cache\_logs\2023-10-17T18_33_07_155Z-debug-0.log
PS C:\Users\anils1\Documents\code\ebikes-manufacturing> ^C
PS C:\Users\anils1\Documents\code\ebikes-manufacturing> ^C
PS C:\Users\anils1\Documents\code\ebikes-manufacturing> npm start

> lwc-oss-manufacturing@1.0.0 start
> MODE=prod node src/server/server.js

Invalid parameter - =prod

Code of Conduct

  • I agree to follow this project's Code of Conduct
@anilshivaraj anilshivaraj added the bug Something isn't working label Oct 17, 2023
@pozil
Copy link
Collaborator

pozil commented Oct 18, 2023

Ho @anilshivaraj, thanks for reporting this. I fixed the issue which was specific to the Windows OS.
Oull the latest changes from the repo and reinstall the node app. This should fix it.

@pozil pozil closed this as completed Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants