不知您是否可以幫助我。Angular-cli未能正確安裝
我試圖安裝角-CLI由故宮命令
NPM安裝-g角CLI,但是我得到了很多的消息,以及「NG」命令不起作用。
一些錯誤,我得到的是如下
> [email protected] install C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-zopfli
node-pre-gyp install --fallback-to-build
節點預GYP-ERR!試圖下載:https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v48-win32-x64.tar.gz node-pre-gyp ERR!未找到針對[email protected]和[email protected](node-v48 ABI)的預構建二進制文件(回退到使用node-gyp編譯的源代碼) gyp ERR!配置錯誤 gyp ERR!堆棧錯誤:找不到Python可執行文件「python」,你可以設置PYTHON env變量。 gyp ERR!堆棧在failNoPython(C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-gyp \ lib \ configure.js:449:14) gyp ERR!堆棧位於C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-gyp \ lib \ configure.js:404:11 gyp ERR!堆棧在FSReqWrap.oncomplete(fs.js:123:15) gyp ERR!系統Windows_NT 10.0.14393 gyp ERR!命令「C:\ Program Files \ nodejs \ node.exe」「C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-gyp \ bin \ node-gyp.js」「 「-module = C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-zopfli \ lib \ binding \ node-v48- win32-x64 \ zopfli.node「--module_name = zopfli」「--module_path = C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-zopfli \ lib \ binding \節點-v48-win32-x64「 gyp ERR! cwd C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-zopfli gyp ERR! node -v v6.5.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR!不好 node-pre-gyp ERR!生成錯誤 node-pre-gyp ERR!堆棧錯誤:無法執行'C:\ Program Files \ nodejs \ node.exe C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-gyp \ bin \ node-gyp。 js configure -fallback-to-build --module = C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-zopfli \ lib \ binding \ node-v48-win32-x64 \ zopfli.node --module_name = zopfli --module_path = C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-zopfli \ lib \ binding \ node-v48-win32-x64 '(1) node-pre-gyp ERR!堆棧在ChildProcess。 (C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-pre-gyp \ lib \ util \ compile.js:83:29) node-pre-gyp ERR!在emitTwo堆棧(events.js:106:13) node-pre-gyp ERR!堆棧在ChildProcess.emit(events.js:191:7) node-pre-gyp ERR! stack at maybeClose(internal/child_process.js:877:16) node-pre-gyp ERR!棧在Process.ChildProcess._handle.onexit(internal/child_process.js:226:5) node-pre-gyp ERR!系統Windows_NT 10.0.14393 node-pre-gyp ERR!命令「C:\ Program Files \ nodejs \ node.exe」「C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-pre-gyp \ bin \ node-pre-gyp 「」install「」 - fallback-to-build「 node-pre-gyp ERR! cwd C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-zopfli node-pre-gyp ERR! node -v v6.5.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.30 node-pre-gyp ERR!不正確 無法執行'C:\ Program Files \ nodejs \ node.exe C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-gyp \ bin \ node-gyp。 js configure -fallback-to-build --module = C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-zopfli \ lib \ binding \ node-v48-win32-x64 \ zopfli。node --module_name = zopfli --module_path = C:\ Users \ my name \ AppData \ Roaming \ npm \ node_modules \ angular-cli \ node_modules \ node-zopfli \ lib \ binding \ node-v48-win32-x64'(1 ) NPM WARN安裝:[email protected] [email protected]安裝:node-pre-gyp install --fallback-to-build
NPM WARN安裝:[email protected]退出狀態1個
[email protected] install C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-sass node scripts/install.js
開始下載二進制的https://github.com/sass/node-sass/releases/download/v3.10.0/win32-x64-48_binding.node 二進制下載並安裝到C:\用戶\我的名字\應用程序數據\漫遊\故宮\ node_modules \角CLI \ node_modules \節點薩斯\供應商\ Win32的x64-48 \ binding.node
[email protected] postinstall C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-sass node scripts/build.js
我需要安裝除node.js之外的其他東西嗎?
林很新的角度,嘗試做一些教程和實驗
感謝您的幫助和時間
什麼是您的操作系統,什麼是您的節點和npm版本? –