小编Cla*_*ceC的帖子

无法安装node-sass node.lib:致命错误LNK1107:文件无效或损坏:无法在0xB8790读取

我无法安装node-sass。当我尝试使用VS2015进行编译时,我已经安装了python2.7和Visual C ++ 2015构建工具,但由于似乎缺少头文件错误而被炸得更早。

我的环境

NPM版本:v4.2.0

节点版本:v7.10.0

节点进程:{http_parser:'2.7.0',节点:'7.10.0',v8:'5.5.372.43',uv:'1.11.0',zlib:'1.2.11',ares:'1.10.1 -DEV”,模块:“ 51”,openssl:“ 1.0.2k”,icu:“ 58.2”,unicode:“ 9.0”,cldr:“ 30.0.3”,tz:“ 2016j”}

节点平台:win32 win10

节点架构:x64

node-sass版本:错误:找不到模块“ node-sass”

npm node-sass版本(``):无

错误:

npm i --save-dev node-sass
....
....
  Release\obj\binding\win_delay_load_hook.obj
  "D:\Project\GitRepositorys\awesome-TPC\node_modules\node-sass\build\Release\libsass.lib"
C:\Users\Administrator\.node-gyp\7.10.0\x64\node.lib : fatal error LNK1107: invalid or corrupt file: cannot read at 0xB8790 [D:\Project\ GitRepositorys\awesome-TPC\node_modules\node-sass\build\binding.vcxproj]


gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (D:\Project\GitRepositorys\awesome-TPC\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:194:7) …
Run Code Online (Sandbox Code Playgroud)

c++ node.js node-gyp node-sass

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

标签 统计

c++ ×1

node-gyp ×1

node-sass ×1

node.js ×1