t3olayout // node-sass@4.9.4 cannot be installed
Summary
When installing npm packages in t3olayout, sass is not being installed because the binary is not available.
user@ter-web:/var/www/html/private/typo3conf/ext/t3olayout/Build$ npm install
> node-sass@4.9.4 install /var/www/html/private/typo3conf/ext/t3olayout/Build/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.4/linux-x64-72_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.9.4/linux-x64-72_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
Steps to reproduce
Setup project as described here, then, if you don't see the error upon ddev start
already, navigate to /var/www/html/private/typo3conf/ext/t3olayout/Build
and execute npm install
.
What is the current bug behavior?
node-sass@4.9.4 is not available at GitHub anymore, which is: https://github.com/sass/node-sass/releases/download/v4.9.4/linux-x64-72_binding.node
What is the expected correct behavior?
Node-sass is installed properly. In addition I noticed gulp-sass installed either, so we probably have some duplicates here.
Acceptence Criterias
-
node-sass is installed accordingly. Not necessarily v4.9.4
Possible fixes
In the locked package file, node-sass v4.9.4 is locked. So, I assume it just needs to be updated.
private/typo3conf/ext/t3olayout/Build/package-lock.json
"node-sass": {
"version": "4.9.4",
"resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.9.4.tgz",
"integrity": "sha512-MXyurANsUoE4/6KmfMkwGcBzAnJQ5xJBGW7Ei6ea8KnUKuzHr/SguVBIi3uaUAHtZCPUYkvlJ3Ef5T5VAwVpaA==",
"dev": true,
"requires": {
"async-foreach": "^0.1.3",
// ...
},