2017-10-30 172 views
0

노드를 처음 사용 중입니다. 노드 버전이 8.6입니다. 튜토리얼 교사가 만든 git에서 복제 한 특정 앱을 만들려고 할 때마다이 오류가 발생합니다. 내가 생각할 수있는 모든 것을 시도했지만 npm 설치 명령을 실행할 때마다이 오류가 지속됩니다.치명적인 오류 LNK1107 : 파일이 잘못되었거나 손상되었습니다. 0x21E00D에서 읽을 수 없습니다.

C:\Users\Ogbonna Vitalis Pc\.node-gyp\8.6.0\x64\node.lib : fatal error LNK1107: invalid or corrupt file: cannot read at 
0x21E00D [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj] 
Done Building Project "C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj" (default t 
argets) -- FAILED. 

Done Building Project "C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj.metaproj" (
default targets) -- FAILED. 

Done Building Project "C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.sln" (default targe 
ts) -- FAILED. 


Build FAILED. 

"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.sln" (default target) (1) -> 
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj.metaproj" (default target) (2) -> 
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\src\libsass.vcxproj" (default target) (3) -> 
(ClCompile target) -> 
    cl : Command line warning D9025: overriding '/GR-' with '/GR' [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\n 
ode-sass\build\src\libsass.vcxproj] 
    cl : Command line warning D9025: overriding '/GR-' with '/GR' [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\n 
ode-sass\build\src\libsass.vcxproj] 
    cl : Command line warning D9025: overriding '/GR-' with '/GR' [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\n 
ode-sass\build\src\libsass.vcxproj] 
    cl : Command line warning D9025: overriding '/GR-' with '/GR' [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\n 
ode-sass\build\src\libsass.vcxproj] 
    cl : Command line warning D9025: overriding '/GR-' with '/GR' [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\n 
ode-sass\build\src\libsass.vcxproj] 
    ..\..\src\libsass\src\json.cpp(26): warning C4005: '_CRT_NONSTDC_NO_DEPRECATE': macro redefinition [C:\xampp\htdocs\n 
odejs\offlineweb\wittr\node_modules\node-sass\build\src\libsass.vcxproj] 
    ..\..\src\libsass\src\sass2scss.cpp(9): warning C4005: '_CRT_NONSTDC_NO_DEPRECATE': macro redefinition [C:\xampp\htdo 
cs\nodejs\offlineweb\wittr\node_modules\node-sass\build\src\libsass.vcxproj] 
    cl : Command line warning D9025: overriding '/GR-' with '/GR' [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\n 
ode-sass\build\src\libsass.vcxproj] 


"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.sln" (default target) (1) -> 
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj.metaproj" (default target) (2) -> 
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj" (default target) (4) -> 
    ..\src\binding.cpp(140): warning C4244: 'argument': conversion from 'size_t' to 'double', possible loss of data [C:\x 
ampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj] 
    c:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\nan\nan_new.h(208): warning C4244: 'argument': conversion from ' 
size_t' to 'double', possible loss of data (compiling source file ..\src\sass_types\list.cpp) [C:\xampp\htdocs\nodejs\o 
fflineweb\wittr\node_modules\node-sass\build\binding.vcxproj] 
    c:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\nan\nan_new.h(208): warning C4244: 'argument': conversion from ' 
size_t' to 'double', possible loss of data (compiling source file ..\src\sass_types\map.cpp) [C:\xampp\htdocs\nodejs\of 
flineweb\wittr\node_modules\node-sass\build\binding.vcxproj] 


"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.sln" (default target) (1) -> 
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj.metaproj" (default target) (2) -> 
"C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj" (default target) (4) -> 
(Link target) -> 
    C:\Users\Ogbonna Vitalis Pc\.node-gyp\8.6.0\x64\node.lib : fatal error LNK1107: invalid or corrupt file: cannot read 
at 0x21E00D [C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass\build\binding.vcxproj] 

    11 Warning(s) 
    1 Error(s) 

Time Elapsed 00:04:58.47 
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 (C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-gyp\lib\build.js:258:23) 
gyp ERR! stack  at emitTwo (events.js:125:13) 
gyp ERR! stack  at ChildProcess.emit (events.js:213:7) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) 
gyp ERR! System Windows_NT 10.0.14393 
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\xampp\\htdocs\\nodejs\\offlineweb\\wittr\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" 
gyp ERR! cwd C:\xampp\htdocs\nodejs\offlineweb\wittr\node_modules\node-sass 
gyp ERR! node -v v8.6.0 
gyp ERR! node-gyp -v v3.6.2 
gyp ERR! not ok 
Build failed with error code: 1 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents): 
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\bufferutil): 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild` 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\utf-8-validate): 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild` 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 

npm ERR! code ELIFECYCLE 
npm ERR! errno 1 
npm ERR! [email protected] postinstall: `node scripts/build.js` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script. 
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 

npm ERR! A complete log of this run can be found in: 
npm ERR!  C:\Users\Ogbonna Vitalis Pc\AppData\Roaming\npm-cache\_logs\2017-10-29T22_55_33_341Z-debug.log 

Pls 제안 사항을 높이 평가할 것입니다. 미리 감사드립니다.

답변

-1

나는 또한 this helpful comment을 발견했다. Python 2.7 및 Visual C++ 빌드 도구를 설치 한 후 node_modules 폴더를 삭제하고 Administrator에서 CMD를 열고 npm install --msvs_version=2015을 실행했습니다. 그리고 성공적으로 설치되었습니다!

This link 저는 Python 및 VS C++ 빌드 도구를 설치하는 데 도움을 받았습니다.