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

got failed when used nest new to create a new project #733

Closed
zcwgd163 opened this issue May 26, 2018 · 4 comments
Closed

got failed when used nest new to create a new project #733

zcwgd163 opened this issue May 26, 2018 · 4 comments
Assignees

Comments

@zcwgd163
Copy link

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:

@kamilmysliwiec
Copy link
Member

cc @thomrick

@AntoineMaitre
Copy link

AntoineMaitre commented May 28, 2018

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.

@kamilmysliwiec
Copy link
Member

Please, report this issue in the corresponding repository: https://github.com/nestjs/nest-cli

@lock
Copy link

lock bot commented Sep 24, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants