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

Start new project not working with NPM

Open workfel opened this issue 8 years ago • 11 comments

Hi,

I have installed the last version of nest-cli with npm i -g @nestjs/cli i have version 5.1.0.

When i tried to make nest new MyProject with npm the script stop with this error

$ Failed to execute command: install --silent
🙀  Packages installation failed, see above

But when i select yarn all is fine .

I have node 8.6.0

workfel avatar Apr 26 '18 13:04 workfel

Hey @workfel thanks for your feedbacks.

What happens when you type npm --version in your terminal ?

thomrick avatar Apr 26 '18 16:04 thomrick

@ThomRick i have 5.6.0

workfel avatar Apr 26 '18 17:04 workfel

Hum weird... because the cli node process use your npm program to execute npm install --silent command... Which OS do you use ? Do you have any restrictions on you npm program ?

thomrick avatar Apr 26 '18 17:04 thomrick

here with nest-cli version 5.1.0 it built the app normally with nest new testcli, but then I tried nest g controller test1 and it gave me:

Cannot read property 'subfiles' of null
🙀  Failed to execute command: @nestjs/schematics:controller --name=test1 --dry-run=false

my npm is 5.6.0

linck5 avatar Apr 27 '18 22:04 linck5

Hum weird but not the same issue Open a new one please :-)

thomrick avatar Apr 28 '18 09:04 thomrick

@ThomRick i'm on Macos 10.13.4

workfel avatar Apr 30 '18 07:04 workfel

Please upgrade to 5.1.1

thomrick avatar Apr 30 '18 09:04 thomrick

Hey @ThomRick I have the same problem :(

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

$ yarn -v
1.17.3
$ nest -V
6.3.0

What can I do?

yesworld avatar Aug 10 '19 08:08 yesworld

I figured it out. I added a path to the project name. 😱

$ nest new ./NAME_PROJECT

yesworld avatar Aug 10 '19 09:08 yesworld

Gracias, lo soluciono para mi

ludwingnidoo avatar Sep 05 '19 22:09 ludwingnidoo

upgrading node version solved problem

mhdolatabadi avatar Aug 15 '21 15:08 mhdolatabadi