不知您是否可以帮助我。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版本? –