
Security News
pnpm 10.12 Introduces Global Virtual Store and Expanded Version Catalogs
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
rebuild-node-sass
Advanced tools
Rebuilds node-sass but only if needed
npm install --save-dev rebuild-node-sass node-sass
Then before build (when node-sass
is probably used), call rebuild-node-sass
to make sure it is ready
{
"scripts": {
"prebuild": "rebuild-node-sass",
"build": "..."
}
}
To execute in a different environment, for example when working on Mac, we
can install Mac Sass binary npm install
and then switch to Docker
docker run -v $PWD:/src -w /src -it node /bin/bash
which produces the following output (abridged)
root@0d0cd593e320:/src# ./rebuild.sh
npm info it worked if it ends with ok
npm info using npm@5.0.0
npm info using node@v8.0.0
npm info ok
/src/node_modules/node-sass/lib/binding.js:15
throw new Error(errors.missingBinary());
...
Binary found at /src/node_modules/node-sass/vendor/linux-x64-57/binding.node
Testing binary
Binary is fine
node-sass@4.5.3 /src/node_modules/node-sass
FAQs
Rebuilds node-sass but only if needed
We found that rebuild-node-sass demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.