Vagrant Puppet, unable to install @angular/cli -


i have these resources on default.pp file:

class { 'nodejs':   repo_url_suffix => '8.x', } -> package {   'gulp':     ensure   => 'present',     provider => 'npm';   'webpack':     ensure   => 'present',     provider => 'npm';   'pm2':     ensure   => 'present',     require  => class['nodejs'],     provider => 'npm';   '@angular/cli':     ensure   => 'present',     provider => 'npm'; } 

and while trying setup vagrant instance, gets stuck , no more activity on screen:

==> default: notice: /stage[main]/nodejs::install/package[nodejs]/ensure: created ==> default: notice: /stage[main]/main/package[gulp]/ensure: created ==> default: notice: /stage[main]/main/package[webpack]/ensure: created ==> default: notice: /stage[main]/main/package[pm2]/ensure: created 

i've tried too:

  'pm2':     ensure   => 'present',     require  => class['nodejs'],     provider => 'npm'; } -> exec { 'install angular cli':   command => '/usr/bin/npm install --global @angular/cli',   creates => '/usr/lib/node_modules/@angular/cli/bin/ng' } 

but difference time timeout:

==> default: error: command exceeded timeout ==> default: error: /stage[main]/main/exec[install angular cli]/returns: change notrun 0 failed: command exceeded timeout 

after timeout, vagrant up finalizes tasks , i'm able log in vagrant ssh , check installed successfully:

which ng: /usr/bin/ng 

so i'm suspecting timeout due returned status of @angular/cli installation.

is there way avoid it?


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -