Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Actions for theme:

  • rm -r node_modules
    This will remove the node_modules folder in your repository. If you are using Webpack, you can also remove the dist folder using rm -r dist and re-build your repository.

  • npm cache clean --force

  • nvm ls - Prints the node versions installed on your machine & the current node version you're using.

  • nvm use 16

  • npm uninstall node-sass

  • npm install sass

    https://www.npmjs.com/package/node-sass/v/7.0.1 vs https://www.npmjs.com/package/sass

  • npm install

Node-Sass

  • Warning: LibSass and Node Sass are deprecated. While they will continue to receive maintenance releases indefinitely, there are no plans to add additional features or compatibility with any new CSS or Sass features. Projects that still use it should move onto Dart Sass.

  • Are you running a M1 mac? ARM64 isn't supported by any version of node-sass right now.

    • Trying to run npm install will error out.

Issues Drupal.org

https://www.drupal.org/project/drupal/issues/3261734#comment-14421915

https://www.drupal.org/project/bootstrap_sass/issues/3259490

https://www.hook42.com/blog/nodejs-version-control-drupal-themes

https://stackoverflow.com/questions/70971967/cant-install-node-sass6-for-node-v16

https://stackoverflow.com/questions/69312134/error-with-node-sass-when-running-npm-install

Seperate issues ???

we are using https://www.npmjs.com/package/jpegtran-bin , but should be using https://www.npmjs.com/package/imagemin-jpegtran ??

Helpful links:

https://blog.logrocket.com/how-switch-node-js-versions-nvm/

  • No labels