Should Yarn be included with NPM in documentation?

Created on 22 November 2021, almost 4 years ago
Updated 17 July 2025, 3 months ago

Problem/Motivation

With a clean Drupal 9 installation, not creating a custom theme using the drush script, npm install fails.

I'm suspicious that I'm just trying to use the wrong version of something (probably node), but I'm not sure which version I should try. I've attempted to roll back to Node 10, and also Node 8. I remember switching between those versions in the past (and both were already installed via homebrew), but neither of them work. For v10, I was able to run npm install, and I got a different set of errors. When I attempted to use v8, I couldn't run npm install at all.

I'm not even sure what error messages I should include here to help troubleshoot. I'm not very familiar with Node & NPM.

πŸ’¬ Support request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States safetypin Memphis, Tennessee

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada awasson

    I've changed the title and version of BASIC to better address the issue.

    I've used both Yarn and NPM to install BASIC. I think Yarn does as good or better a job at installing BASIC and Yarn can be used to run the watch:all script that is defined in the package.json file.

    I've found that NPM can be problematic on MACOS when you upgrade from one major version of MACOS to the next because the Developer Tools are sometimes behind in support for Node libraries and requirements so YARN is a good option. I think we should have both. I'll update the README and commit that to the DEV.

    Cheers,
    Andrew

  • πŸ‡¨πŸ‡¦Canada awasson

    Patch

  • πŸ‡¨πŸ‡¦Canada awasson

    Fixed. Thanks.

    Have pushed to DEV and will tag a new release with it in the near future.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024