angular: проект не запустился после обновления nodejs до 12.x - PullRequest
0 голосов
/ 08 октября 2019

Мой проект Angular не удалось собрать и запустить после обновления nodejs с 10.x до 12.x со следующим сообщением:

Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: Missing binding C:\xxx\client\node_modules\node-sass\vendor\win32-x64-72\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 12.x
Found bindings for the following environments:
- Windows 64-bit with Node.js 10.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to download the binding for your current environment.

Я пытаюсь npm rebuild node-sass, но он все еще не может работать,Так в чем же проблема?

1 Ответ

1 голос
/ 08 октября 2019

Вы можете попробовать следующее:

  1. Удаление node_modules, а затем npm i
  2. удаление node-sass и его повторная установка.

    npm uninstall node-sass npm i node-sass

...