为了账号安全,请及时绑定邮箱和手机立即绑定

还是安装不了

E:\webv\web>cnpm install node-sass

√ Installed 1 packages

√ Linked 19 latest versions

node-sass build Binary found at F:\Program Files\win32-x64-57_binding.node

Binary found at F:\Program Files\win32-x64-57_binding.node

Testing binary

Binary has a problem: Error: The module '\\?\F:\Program Files\win32-x64-57_binding.node'

was compiled against a different Node.js version using

NODE_MODULE_VERSION 57. This version of Node.js requires

NODE_MODULE_VERSION 64. Please try re-compiling or re-installing

the module (for instance, using `npm rebuild` or `npm install`).

    at Object.Module._extensions..node (internal/modules/cjs/loader.js:717:18)

    at Module.load (internal/modules/cjs/loader.js:598:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)

    at Function.Module._load (internal/modules/cjs/loader.js:529:3)

    at Module.require (internal/modules/cjs/loader.js:636:17)

    at require (internal/modules/cjs/helpers.js:20:18)

    at module.exports (E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\lib\binding.js:19:10)

    at Object.<anonymous> (E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\lib\index.js:14:35)

    at Module._compile (internal/modules/cjs/loader.js:688:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)

Building the binary locally

Building: C:\Program Files\nodejs\node.exe E:\webv\web\node_modules\_node-gyp@3.8.0@node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

gyp info it worked if it ends with ok

gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',

gyp verb cli   'E:\\webv\\web\\node_modules\\_node-gyp@3.8.0@node-gyp\\bin\\node-gyp.js',

gyp verb cli   'rebuild',

gyp verb cli   '--verbose',

gyp verb cli   '--libsass_ext=',

gyp verb cli   '--libsass_cflags=',

gyp verb cli   '--libsass_ldflags=',

gyp verb cli   '--libsass_library=' ]

gyp info using node-gyp@3.8.0

gyp info using node@10.14.1 | win32 | x64


  custom_function_bridge.cpp

  custom_importer_bridge.cpp

e:\webv\web\node_modules\_node-sass@4.11.0@node-sass\src\create_string.cpp(17): warning C4996: 'v8::String::Utf8Value::

Utf8Value': 被声明为已否决 [E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj]

  c:\users\administrator\.node-gyp\10.14.1\include\node\v8.h(2891): note: 参见“v8::String::Utf8Value::Utf8Value”的声明  sass_context_wrapper.cpp

  boolean.cpp

  color.cpp

  error.cpp

  factory.cpp

  list.cpp

  map.cpp

  null.cpp

  number.cpp

  string.cpp

  win_delay_load_hook.cc

Link:

  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\link.exe /ER

  RORREPORT:QUEUE /OUT:"E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\Release\binding.node" /INCREMENTAL:N

  O /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib

   uuid.lib odbc32.lib DelayImp.lib "C:\Users\Administrator\.node-gyp\10.14.1\x64\node.lib" Delayimp.lib /DELAYLOAD:ioj

  s.exe /DELAYLOAD:node.exe /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"E:

  \webv\web\node_modules\_node-sass@4.11.0@node-sass\build\Release\binding.pdb" /MAP /MAPINFO:EXPORTS /OPT:REF /OPT:ICF

   /TLBID:1 /RELEASE /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /ignore:4199 /LTCG:INCREMENTAL /DLL Release\obj\binding\bindin

  g.obj

  Release\obj\binding\create_string.obj

  Release\obj\binding\custom_function_bridge.obj

  Release\obj\binding\custom_importer_bridge.obj

  Release\obj\binding\sass_context_wrapper.obj

  Release\obj\binding\boolean.obj

  Release\obj\binding\color.obj

  Release\obj\binding\error.obj

  Release\obj\binding\factory.obj

  Release\obj\binding\list.obj

  Release\obj\binding\map.obj

  Release\obj\binding\null.obj

  Release\obj\binding\number.obj

  Release\obj\binding\string.obj

  Release\obj\binding\win_delay_load_hook.obj

  "E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\Release\libsass.lib"

    正在创建库 E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\Release\binding.lib 和对象 E:\webv\web\node_modules\_

  node-sass@4.11.0@node-sass\build\Release\binding.exp

binding.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static class v8::Local<class v8::FunctionTemplate

> __cdecl v8::FunctionTemplate::New(class v8::Isolate *,void (__cdecl*)(class v8::FunctionCallbackInfo<class v8::Value>

 const &),class v8::Local<class v8::Value>,class v8::Local<class v8::Signature>,int,enum v8::ConstructorBehavior,enum v

8::SideEffectType)" (__imp_?New@FunctionTemplate@v8@@SA?AV?$Local@VFunctionTemplate@v8@@@2@PEAVIsolate@2@P6AXAEBV?$Func

tionCallbackInfo@VValue@v8@@@2@@ZV?$Local@VValue@v8@@@2@V?$Local@VSignature@v8@@@2@HW4ConstructorBehavior@2@W4SideEffec

tType@2@@Z) [E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj]

binding.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) void __cdecl node::EmitAsyncDestroy(class v8::Isolate *,s

truct node::async_context)" (__imp_?EmitAsyncDestroy@node@@YAXPEAVIsolate@v8@@Uasync_context@1@@Z) [E:\webv\web\node_mo

dules\_node-sass@4.11.0@node-sass\build\binding.vcxproj]

binding.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) class v8::MaybeLocal<class v8::Value> __cdecl node::MakeC

allback(class v8::Isolate *,class v8::Local<class v8::Object>,class v8::Local<class v8::Function>,int,class v8::Local<c

lass v8::Value> *,struct node::async_context)" (__imp_?MakeCallback@node@@YA?AV?$MaybeLocal@VValue@v8@@@v8@@PEAVIsolate

@3@V?$Local@VObject@v8@@@3@V?$Local@VFunction@v8@@@3@HPEAV?$Local@VValue@v8@@@3@Uasync_context@1@@Z) [E:\webv\web\node_

modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj]

binding.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) struct node::async_context __cdecl node::EmitAsyncInit(cl

ass v8::Isolate *,class v8::Local<class v8::Object>,class v8::Local<class v8::String>,double)" (__imp_?EmitAsyncInit@no

de@@YA?AUasync_context@1@PEAVIsolate@v8@@V?$Local@VObject@v8@@@4@V?$Local@VString@v8@@@4@N@Z) [E:\webv\web\node_modules

\_node-sass@4.11.0@node-sass\build\binding.vcxproj]

E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\Release\binding.node : fatal error LNK1120: 4 个无法解析的外部命令 [E:

\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj]

已完成生成项目“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj”(默认目标)的操作 - 失败。


已完成生成项目“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj.metaproj”(默认目标)的操作 - 失败。


已完成生成项目“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.sln”(默认目标)的操作 - 失败。



生成失败。


“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.sln”(默认目标) (1) ->

“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj.metaproj”(默认目标) (2) ->

“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\src\libsass.vcxproj”(默认目标) (3) ->

(ClCompile 目标) ->

  cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\src\libsass.vc

xproj]

  cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\src\libsass.vc

xproj]

  cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\src\libsass.vc

xproj]

  cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\src\libsass.vc

xproj]

  cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\src\libsass.vc

xproj]

  e:\webv\web\node_modules\_node-sass@4.11.0@node-sass\src\libsass\src\json.cpp(26): warning C4005: “_CRT_NONSTDC_NO_DEPRECATE”: 宏重定义 [E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\src\libsass.vcxproj]

  e:\webv\web\node_modules\_node-sass@4.11.0@node-sass\src\libsass\src\sass2scss.cpp(9): warning C4005: “_CRT_NONSTDC_NO_DEPRECATE”: 宏重定义 [E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\src\libsass.vcxproj]



“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.sln”(默认目标) (1) ->

“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj.metaproj”(默认目标) (2) ->

“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\src\libsass.vcxproj”(默认目标) (3) ->

  cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\src\libsass.vc

xproj]



“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.sln”(默认目标) (1) ->

“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj.metaproj”(默认目标) (2) ->

“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj”(默认目标) (4) ->

  e:\webv\web\node_modules\_node-sass@4.11.0@node-sass\src\create_string.cpp(17): warning C4996: 'v8::String::Utf8Value

::Utf8Value': 被声明为已否决 [E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj]



“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.sln”(默认目标) (1) ->

“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj.metaproj”(默认目标) (2) ->

“E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj”(默认目标) (4) ->

(Link 目标) ->

  binding.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static class v8::Local<class v8::FunctionTempla

te> __cdecl v8::FunctionTemplate::New(class v8::Isolate *,void (__cdecl*)(class v8::FunctionCallbackInfo<class v8::Valu

e> const &),class v8::Local<class v8::Value>,class v8::Local<class v8::Signature>,int,enum v8::ConstructorBehavior,enum

 v8::SideEffectType)" (__imp_?New@FunctionTemplate@v8@@SA?AV?$Local@VFunctionTemplate@v8@@@2@PEAVIsolate@2@P6AXAEBV?$Fu

nctionCallbackInfo@VValue@v8@@@2@@ZV?$Local@VValue@v8@@@2@V?$Local@VSignature@v8@@@2@HW4ConstructorBehavior@2@W4SideEff

ectType@2@@Z) [E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj]

  binding.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) void __cdecl node::EmitAsyncDestroy(class v8::Isolate *

,struct node::async_context)" (__imp_?EmitAsyncDestroy@node@@YAXPEAVIsolate@v8@@Uasync_context@1@@Z) [E:\webv\web\node_

modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj]

  binding.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) class v8::MaybeLocal<class v8::Value> __cdecl node::Mak

eCallback(class v8::Isolate *,class v8::Local<class v8::Object>,class v8::Local<class v8::Function>,int,class v8::Local

<class v8::Value> *,struct node::async_context)" (__imp_?MakeCallback@node@@YA?AV?$MaybeLocal@VValue@v8@@@v8@@PEAVIsola

te@3@V?$Local@VObject@v8@@@3@V?$Local@VFunction@v8@@@3@HPEAV?$Local@VValue@v8@@@3@Uasync_context@1@@Z) [E:\webv\web\nod

e_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj]

  binding.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) struct node::async_context __cdecl node::EmitAsyncInit(

class v8::Isolate *,class v8::Local<class v8::Object>,class v8::Local<class v8::String>,double)" (__imp_?EmitAsyncInit@

node@@YA?AUasync_context@1@PEAVIsolate@v8@@V?$Local@VObject@v8@@@4@V?$Local@VString@v8@@@4@N@Z) [E:\webv\web\node_modul

es\_node-sass@4.11.0@node-sass\build\binding.vcxproj]

  E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\Release\binding.node : fatal error LNK1120: 4 个无法解析的外部命令 [

E:\webv\web\node_modules\_node-sass@4.11.0@node-sass\build\binding.vcxproj]


    9 个警告

    5 个错误


已用时间 00:00:39.78

gyp ERR! build error

gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1

gyp ERR! stack     at ChildProcess.onExit (E:\webv\web\node_modules\_node-gyp@3.8.0@node-gyp\lib\build.js:262:23)

gyp ERR! stack     at ChildProcess.emit (events.js:182:13)

gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)

gyp ERR! System Windows_NT 10.0.17134

gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "E:\\webv\\web\\node_modules\\_node-gyp@3.8.0@node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="

gyp ERR! cwd E:\webv\web\node_modules\_node-sass@4.11.0@node-sass

gyp ERR! node -v v10.14.1

gyp ERR! node-gyp -v v3.8.0

gyp ERR! not ok

Build failed with error code: 1

× Install fail! Error: post install error, please remove node_modules before retry!

Run "C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js" error, exit code 1

Error: post install error, please remove node_modules before retry!

Run "C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js" error, exit code 1

    at ChildProcess.proc.on.code (C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\runscript\index.js:74:21)

    at ChildProcess.emit (events.js:182:13)

    at maybeClose (internal/child_process.js:962:16)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

npminstall version: 3.18.0

npminstall args: C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\Administrator\.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org node-sass


正在回答

4 回答

有没有解决啊大神

1 回复 有任何疑惑可以回复我~

使用 cnpm 安装

0 回复 有任何疑惑可以回复我~

解决了吗

0 回复 有任何疑惑可以回复我~

把node卸载干净, 重新安装一个版本试试, 应该是冲突了

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

还是安装不了

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信