Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm won't get re-installed after node update #120

Open
rmoriz opened this issue Mar 10, 2016 · 7 comments
Open

npm won't get re-installed after node update #120

rmoriz opened this issue Mar 10, 2016 · 7 comments
Labels
Bug Something isn't working hacktoberfest An issue highlighted for the digital ocean Hacktoberfest Event Help Wanted Assistance is required to resolve this issue Maintenance Maintenance issues such as failing builds Priority: Medium Will bring visible benefit to the project

Comments

@rmoriz
Copy link

rmoriz commented Mar 10, 2016

Given:

  • node installed using binary method
  • npm installed using source method

When:

  • update node version
  • leave npm version unchanged

Then

  • embbed npm of node is used.

npm recipe should check the current npm version and re-install if is below the version specified in attributes. Ark only checks if the directory already exists (eg /usr/local/node-3.8.0).

@eagleeye
Copy link

same for me

Recipe: nodejs::npm_from_source
  * ark[npm] action install_with_make
    * directory[/usr/local/npm-3.8.1] action create (up to date)
    * remote_file[/var/chef/cache/npm-3.8.1.tgz] action create (up to date)
    * execute[unpack /var/chef/cache/npm-3.8.1.tgz] action nothing (skipped due to action :nothing)
    * execute[set owner on /usr/local/npm-3.8.1] action nothing (skipped due to action :nothing)
    * execute[autogen /usr/local/npm-3.8.1] action nothing (skipped due to action :nothing)
    * execute[configure /usr/local/npm-3.8.1] action nothing (skipped due to action :nothing)
    * execute[make /usr/local/npm-3.8.1] action nothing (skipped due to action :nothing)
    * execute[make install /usr/local/npm-3.8.1] action nothing (skipped due to action :nothing)
     (up to date)

@ebdrup
Copy link

ebdrup commented Mar 15, 2016

we have this issue too

@bubenshchykov
Copy link

+1

1 similar comment
@raymatos
Copy link

+1

@eagleeye
Copy link

eagleeye commented Oct 4, 2016

my hotfix for this:

file '/usr/local/bin/npm' do
   action :delete
 end

 link '/usr/local/bin/npm' do
   to '/usr/local/npm-' + node['nodejs']['npm']['version'] + '/bin/npm-cli.js'
 end

@github-actions
Copy link

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

@github-actions github-actions bot added the Stale label Sep 30, 2020
@MarkGibbons MarkGibbons added Needs Triage Issue is waiting to be categorised and removed Stale labels Sep 30, 2020
@MarkGibbons
Copy link
Member

Part of a whole set of upgrade issues.

@MarkGibbons MarkGibbons added Bug Something isn't working hacktoberfest An issue highlighted for the digital ocean Hacktoberfest Event Help Wanted Assistance is required to resolve this issue Maintenance Maintenance issues such as failing builds Priority: Medium Will bring visible benefit to the project and removed Needs Triage Issue is waiting to be categorised labels Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working hacktoberfest An issue highlighted for the digital ocean Hacktoberfest Event Help Wanted Assistance is required to resolve this issue Maintenance Maintenance issues such as failing builds Priority: Medium Will bring visible benefit to the project
Projects
None yet
Development

No branches or pull requests

6 participants