0
當我使用下面的命令:錯誤,當我嘗試運行NPM安裝-g量角器
npm install -g protractor
失敗,並給了我下面的錯誤:
LINK : fatal error LNK1181: cannot open input file 'gdi32.lib' [C:\Users\Develo per\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver \node_modules\ws\node_modules\bufferutil\build\bufferutil.vcxproj] gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Developer\AppData\Roaming\npm\node_modules\protractor\node
_modules\selenium-webdriver\node_modules\ws\node_modules\bufferutil
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
> [email protected] install C:\Users\Developer\AppData\Roaming\npm\node_modul
es\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\utf-8
-validate
> node-gyp rebuild
C:\Users\Developer\AppData\Roaming\npm\node_modules\protractor\node_modules\sele
nium-webdriver\node_modules\ws\node_modules\utf-8-validate>if not defined npm_co
nfig_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\
..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild) else (rebuild)
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
validation.cc
LINK : fatal error LNK1181: cannot open input file 'gdi32.lib' [C:\Users\Develo
per\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver
\node_modules\ws\node_modules\utf-8-validate\build\validation.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Developer\AppData\Roaming\npm\node_modules\protractor\node
_modules\selenium-webdriver\node_modules\ws\node_modules\utf-8-validate
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]
C:\Users\Developer\AppData\Roaming\npm\protractor -> C:\Users\Developer\AppData\
Roaming\npm\node_modules\protractor\bin\protractor
C:\Users\Developer\AppData\Roaming\npm\webdriver-manager -> C:\Users\Developer\A
ppData\Roaming\npm\node_modules\protractor\bin\webdriver-manager
[email protected] C:\Users\Developer\AppData\Roaming\npm\node_modules\protractor
├── [email protected]
├── [email protected]
├── html-en[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], tunn
[email protected], [email protected], [email protected], [email protected], [email protected]
3, [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
任何想法如何解決這個?
請給我支持。 happend給我
嗨,老兄,你需要評論的問題,那是什麼 –
這是試圖安裝量角器時錯誤我angularjs project – ahmad
這是令人討厭的,我找不到任何資源如何解決這個問題,我編輯了我正在做的步驟。 – ahmad