- shell_out!("npm install --global #{package_name}")
- new_resource.updated_by_last_action(true)
- else
- if new_resource.version &&
- new_resource.version != @current_resource.version
+ converge_by "install #{package_name}" do
+ shell_out!("npm install --global #{package_name}")
+ end
+ elsif new_resource.version &&
+ new_resource.version != @current_resource.version
+ converge_by "update #{package_name}" do