nest-cli icon indicating copy to clipboard operation
nest-cli copied to clipboard

new project have the npm install --silent failed

Open zcwgd163 opened this issue 8 years ago • 9 comments

Hi, I new project have the npm install --silent failed problem at win 10,below is the detail G:\programm\nestjs-root>nest n nest-test

⚡️ Creating your Nest project... 🙌 We have to collect additional information:

? description : test ? version : 0.0.0 ? author : zcw

💥 Thank you for your time!

CREATE /nest-test/.prettierrc (51 bytes) CREATE /nest-test/nodemon.json (147 bytes) CREATE /nest-test/package.json (1587 bytes) CREATE /nest-test/README.md (332 bytes) CREATE /nest-test/src/app.controller.spec.ts (639 bytes) CREATE /nest-test/src/app.controller.ts (266 bytes) CREATE /nest-test/src/app.module.ts (248 bytes) CREATE /nest-test/src/app.service.ts (138 bytes) CREATE /nest-test/src/main.hmr.ts (329 bytes) CREATE /nest-test/src/main.ts (208 bytes) CREATE /nest-test/test/app.e2e-spec.ts (609 bytes) CREATE /nest-test/test/jest-e2e.json (154 bytes) CREATE /nest-test/tsconfig.json (477 bytes) CREATE /nest-test/tslint.json (895 bytes) CREATE /nest-test/webpack.config.js (695 bytes)

? Which package manager would you ❤️ to use? npm ▹▸▹▹▹ Take ☕️ or 🍺 during the packages installation process and enjoy your time🙀 Failed to execute command: npm install --silent × Take ☕️ or 🍺 during the packages installation process and enjoy your time 🙀 Packages installation failed, see above

nest version:5.2.0 node version:v8.9.1 npm version:6.1.0

OS version:Microsoft Windows 10 professional 10.0.17134

zcwgd163 avatar Jun 10 '18 09:06 zcwgd163

I think this related to #138

thomrick avatar Jun 10 '18 10:06 thomrick

Ok after investigation I found that is not related to #138 It's a bug on windows only.

The CLI use spawn from child_process and pass '"npm"'argument to the spawn process name. That causes an error on windows.

That was a fix needed to run schematics on windows with spaces on absolute paths... We're find a way to fix it soon.

thomrick avatar Jun 10 '18 11:06 thomrick

Did you happen to find a temporary workaround for this bug? I am trying to create a new project and keep running into this problem along with the issue with the camel case naming convention. I am on a windows machine as well.

tostangs avatar Jun 20 '18 17:06 tostangs

Hi, What is the solution for this bug.

kethireddyr avatar Jan 08 '19 19:01 kethireddyr

I'm having this issue too.

I'm on Macos 10.14.4 Node v10.15.3 Npm v6.9.0 Nest v6.3.0

? Which package manager would you ❤️ to use? npm ▸▹▹▹▹ Installation in progress... ☕Failed to execute command: npm install --silent ✖ Installation in progress... ☕ 🙀 Packages installation failed, see above

Do I need to open a new Issue?

kbberker avatar May 10 '19 14:05 kbberker

sudo chown -R $USER:$GROUP ~/.npm sudo chown -R $USER:$GROUP ~/.config npm install

xino1010 avatar May 24 '19 11:05 xino1010

I'm having this issue too.

I'm on Macos 10.14.4 Node v10.15.3 Npm v6.9.0 Nest v6.3.0

? Which package manager would you ❤️ to use? npm ▸▹▹▹▹ Installation in progress... ☕Failed to execute command: npm install --silent ✖ Installation in progress... ☕ 🙀 Packages installation failed, see above

Do I need to open a new Issue?

installing with yarn seems to work

ceeghee avatar Jul 01 '19 09:07 ceeghee

first open cmd in your project folder you're not gonna have node_modules folder, so use:

npm cache clean --force

and then

npm i

it solved the problem for me.

gmcruz123 avatar Jul 02 '19 03:07 gmcruz123

Thank you #gmcruz123 solved

md1116 avatar Jul 19 '19 14:07 md1116