R
R
Roman2020-11-21 16:10:25
Windows
Roman, 2020-11-21 16:10:25

Problem with node-sass in all projects?

Hello, I have a problem with either create-react-app or node.js, maybe with Windows itself.
Yesterday, according to the standard, I initialized the create-react-app project and when I wanted to add node-sass, I got an error something like this: https://github.com/creativetimofficial/blk-design-...
I tried to delete node_modules, package- lock, re-install dependencies, tried old versions of node-sass 4.12.1 4.13.1... nothing helped. It happened that old versions of node -sass refused to be installed at
all . problems have increased.
I think that perhaps the problems appeared when Windows was updated somewhere 2 days ago without my permission (this happens, auto-updates are disabled).

1 error in the project:

> react-scripts start

(node:9340) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at D:\Programming\WEB\javascript\practice\react\templatemonsters-r-task\node_modules\postcss-safe-parser\node_modules\postcss\package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)
i 「wds」: Project is running at http://192.168.251.102/
i 「wds」: webpack output is served from
i 「wds」: Content not from webpack is served from D:\Programming\WEB\javascript\practice\react\templatemonsters-r-task\public
i 「wds」: 404s will fallback to /
Starting the development server...

Failed to compile.

./src/components/App/styles.scss (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-6-1!./node_modules/react-scripts/node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--5-oneOf-6-3!./node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-6-4!./src/components/App/styles.scss)
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.12.0


I decided to check an early working project in which there was also node-sass and then it also appeared:
./src/pages/homepage/homepage.styles.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/pages/homepage/homepage.styles.scss)
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
^C^CTerminate batch job (Y/N)?


If nothing helps, maybe I'll take down Windows.
I don’t know what to do, maybe someone also met with such an error and fixed it, please help, I’ve been trying to solve it for 2 days already ((.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2020-11-21
@Isildur12

What if?

npm rebuild node-sass
npm install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question