相关疑难解决方法(0)

Node Sass No绑定您当前的环境

我在SO上看到了很多这样的问题,但似乎没有一个问题可以解决或匹配.
Node Sass找不到当前环境的绑定:带有Node.js 6.x的Windows 64位. 奇怪的是,我没有安装Node.js 6.x. 从命令行,节点-v给我v5.10.1.

我是开箱即用的Angular4 Universal Asp.net核心视觉工作室2017模板.

我试过了

  • npm rebuild node-sass --force
  • 在Visual Studio中的Web外部工具中重新排序节点

    失败:Microsoft.AspNetCore.Server.Kestrel [13]连接ID"0HL4JSD9SSV8E":应用程序抛出了未处理的异常.System.Exception:调用节点模块失败,错误:由于错误,预渲染失败:错误:模块构建失败:错误:缺少绑定D:\ Projects\angular2 \node_modules \node-sass\vendor\win32-x64-48\binding .node Node Sass找不到当前环境的绑定:带有Node.js 6.x的Windows 64位

    找到以下环境的绑定:

    • 带有Node.js 5.x的Windows 64位

    这通常是因为您的环境自运行以来发生了变化npm install.运行npm rebuild node-sass --force以构建当前环境的绑定.在Object的module.exports(D:\ Projects\angular2 \node_modules \node-sass\lib\binding.js:15:13).(d:\项目\ angular2 \node_modules \节点萨斯\ lib中\ index.js:14:35)

我哪里出错了?

visual-studio node.js npm node-sass

5
推荐指数
1
解决办法
4758
查看次数

VS Task Runner Explorer - Node Sass找不到绑定

打开Visual Studio任务运行程序资源管理器时,gulpfile.js无法加载,并在"输出"窗口中发出此错误.

Failed to run "C:\DATA\Git\MyApp\MyBiz.MyApp\MyBiz.MyApp.WebsiteCore\Gulpfile.js"...
cmd.exe /c gulp --tasks-simple
C:\DATA\Git\MyApp\MyBiz.MyApp\MyBiz.MyApp.WebsiteCore\node_modules\node-sass\lib\binding.js:15
      throw new Error(errors.missingBinary());
      ^
Error: Missing binding C:\DATA\Git\MyApp\MyBiz.MyApp\MyBiz.MyApp.WebsiteCore\node_modules\node-sass\vendor\win32-ia32-47\binding.node
Node Sass could not find a binding for your current environment: Windows 32-bit with Node.js 5.x
Found bindings for the following environments:
  - Windows 64-bit with Node.js 6.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to build the binding for your current environment.
    at module.exports (C:\DATA\Git\MyApp\MyBiz.MyApp\MyBiz.MyApp.WebsiteCore\node_modules\node-sass\lib\binding.js:15:13)
    at Object.<anonymous> (C:\DATA\Git\MyApp\MyBiz.MyApp\MyBiz.MyApp.WebsiteCore\node_modules\node-sass\lib\index.js:14:35)
    at …
Run Code Online (Sandbox Code Playgroud)

sass node.js npm gulp visual-studio-2015

2
推荐指数
2
解决办法
1122
查看次数