下面堆栈跟踪中的链接帮助我解决了此问题。
Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (64)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.7.2
该link(https://github.com/sass/node-sass/releases/tag/v4.7.2
)清楚地显示了所支持的节点版本。
OS Architecture Node
Windows x86 & x64 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9
... ... ...
将节点版本降级到后8.11.1
,npm install
再次执行。得到了以下消息。
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 8.x
Found bindings for the following environments:
- Windows 64-bit with Unsupported runtime (64)
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass --force` to build the binding for your current environment.
终于,npm rebuild node-sass --force
按照指示运行,一切开始工作
npm rebuild node-sass
或sudo npm rebuild node-sass