got failed when used nest new to create a new project
when I run the command,I got this,I check /bin/sh does exists [william@localhost nestjsRoot]$ /bin/sh sh-4.2$ exit exit
I dont kown why, please help [william@localhost nestjsRoot]$ nest n nestjsTest
⚡️ Creating your Nest project... We have to collect additional information:
? description : test ? version : 1.0.0 ? author : zcw
Thank you for your time!
CREATE /nestjs-test/.prettierrc (51 bytes) CREATE /nestjs-test/README.md (334 bytes) CREATE /nestjs-test/nodemon.json (147 bytes) CREATE /nestjs-test/package.json (1589 bytes) CREATE /nestjs-test/src/app.controller.spec.ts (639 bytes) CREATE /nestjs-test/src/app.controller.ts (266 bytes) CREATE /nestjs-test/src/app.module.ts (250 bytes) CREATE /nestjs-test/src/app.service.ts (138 bytes) CREATE /nestjs-test/src/main.hmr.ts (329 bytes) CREATE /nestjs-test/src/main.ts (208 bytes) CREATE /nestjs-test/test/app.e2e-spec.ts (609 bytes) CREATE /nestjs-test/test/jest-e2e.json (154 bytes) CREATE /nestjs-test/tsconfig.json (477 bytes) CREATE /nestjs-test/tslint.json (895 bytes) CREATE /nestjs-test/webpack.config.js (695 bytes) ? Which package manager would you ❤️ to use? npm ▹▹▹▹▹ Take ☕️ or during the packages installation process and enjoy your timeevents.js:183 throw er; // Unhandled 'error' event ^
Error: spawn /bin/sh ENOENT at _errnoException (util.js:1024:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19) at onErrorNT (internal/child_process.js:372:16) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9)
I'm submitting a...
[ ] Regression
[ ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
Expected behavior
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
Nest version: 5.1.2
For Tooling issues:
- Node version: v8.9.1
- Platform: Linux
Others:
cc @ThomRick
I confirm that this behavior happened to me too. It looks like it happens when the name of the project is in camel case instead of kebab case (at least, the problem disappeared for me when I used kebab case instead of camel case).
I hope it will help investigating this issue.
Please, report this issue in the corresponding repository: https://github.com/nestjs/nest-cli
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.