Skip to content

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

Open

Description

@rmoriz

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).

Activity

  1. eagleeye commented on Mar 15, 2016

    @eagleeye

    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)
    
  2. ebdrup commented on Mar 15, 2016

    @ebdrup

    we have this issue too

  3. bubenshchykov commented on Apr 4, 2016

    @bubenshchykov

    +1

  4. raymatos commented on Sep 19, 2016

    @raymatos

    +1

  5. eagleeye commented on Oct 4, 2016

    @eagleeye

    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
  6. github-actions commented on Sep 30, 2020

    @github-actions

    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.

  7. added
    Needs TriageIssue is waiting to be categorised
    and removed on Sep 30, 2020
  8. MarkGibbons commented on Oct 3, 2020

    @MarkGibbons
    Contributor

    Part of a whole set of upgrade issues.

  9. added
    BugSomething isn't working
    hacktoberfestAn issue highlighted for the digital ocean Hacktoberfest Event
    Help WantedAssistance is required to resolve this issue
    MaintenanceMaintenance issues such as failing builds
    Priority: MediumWill bring visible benefit to the project
    and removed
    Needs TriageIssue is waiting to be categorised
    on Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingHelp WantedAssistance is required to resolve this issueMaintenanceMaintenance issues such as failing buildsPriority: MediumWill bring visible benefit to the projecthacktoberfestAn issue highlighted for the digital ocean Hacktoberfest Event

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions