2017-12-03 8 views
0

git를 처음 사용하는 관리자입니다. 관리자 대시 보드를 설치하려고하는데 규칙을 따르고 문제를 해결하려고합니다. 그러나 이제는이 문제로 몇 시간에서 해결할 수 없었습니다! ! 나는 너무 혼란스럽고 무엇을해야할지 모르겠다. 제발 나를 도울 수 있니?git을 사용하여 관리자 admin 대시 보드를 설치할 수 없습니다.

==> cwd: C:\Users\Zeineb\Adminator\node_modules\better-sqlite3 
==> node-gyp rebuild 
C:\Users\Zeineb\Adminator\node_modules\better-sqlite3>if not defined 
npm_config_node_gyp (node "C:\Users\Zeineb\Adminator\node_modules\better- 
sqlite3\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild) else (node 
"" rebuild) 
Building the projects in this solution one at a time. To enable parallel 
build, please add the "/m" switch. 
unpack_sqlite_dep 
'python' is not recognized as an internal or external command, 
operable program or batch file. 
C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): 
error MSB6006: "cmd.exe" exi 
ted with code 1. [C:\Users\Zeineb\Adminator\node_modules\better- 
sqlite3\build\deps\action_before_build.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 
(C:\Users\Zeineb\Adminator\node_modules\node-gyp\lib\build.js:258:23) 
gyp ERR! stack  at ChildProcess.emit (events.js:159:13) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit 
(internal/child_process.js:209:12) 
gyp ERR! System Windows_NT 10.0.15063 
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" 
"C:\\Users\\Zeineb\\Adminator\\node_modules\\node-gyp\\bin\\node-gyp.js" 
"rebuild" 
gyp ERR! cwd C:\Users\Zeineb\Adminator\node_modules\better-sqlite3 
gyp ERR! node -v v9.2.0 
gyp ERR! node-gyp -v v3.6.2 
gyp ERR! not ok 
Error: exit code 1 
at ChildProcess.<anonymous> (C:\Users\Zeineb\Adminator\node_modules\lzz- 
gyp\lib\exec.js:19:12) 
at ChildProcess.emit (events.js:159:13) 
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12) 

이 작성되고 설치가 끝날 때 : : 나는 윈도우 10을 사용하고

npm notice created a lockfile as package-lock.json. You should commit this 
file. 
npm WARN [email protected] requires a peer of [email protected]>=0.2.0 but 
none is installed. You must install peer dependencies yourself. 
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\better-sqlite3): 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] 
install: `node deps/install` 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 

, NPM 내가 NPM 이런 일까지 원활 모든 설치 유형 --when

v 5.5.1

+0

[이것은 출처입니다.] –

+0

컴퓨터에 파이썬이 있습니까? – TGrif

+0

예, 2.7 버전을 설치했습니다. –

답변

0

해결!

처음에는 git을 통해 파이썬을 설치하려고했으나 설치되지 않았거나 git 환경에서 초보자 였기 때문에 잘못된 것으로 작업했기 때문에 Visual Studio를 통해 설치하고 경로 환경 변수에 다음을 입력하십시오 :

1)C:\Python27amd64 
2)C:\Python27amd64\Lib\site-packages\ 
3)C:\Python27amd64\Scripts 

이제는 모든 것이 잘 작동합니다. @TGrif 덕분에 파이썬 문제를 다시 확인하게되었습니다.