Start new project not working with NPM
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
Hey @workfel thanks for your feedbacks.
What happens when you type npm --version in your terminal ?
@ThomRick i have 5.6.0
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 ?
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
Hum weird but not the same issue Open a new one please :-)
@ThomRick i'm on Macos 10.13.4
Please upgrade to 5.1.1
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?
I figured it out. I added a path to the project name. 😱
$ nest new ./NAME_PROJECT
Gracias, lo soluciono para mi
upgrading node version solved problem