npm安装-g ionic不安装在windows 8.1。

时间:2021-07-13 01:43:09

I'm new to ionic framework and getting error when im trying to install ionic.

当我试图安装ionic时,我对ionic框架有了新的认识。

I have installed apache-ant, nodejs, cordova but when i was trying to install ionic then it throws error as follows.

我安装了apache-ant, nodejs, cordova,但当我尝试安装ionic时,它会产生如下错误。

OS windows 8.1 64 bit.

操作系统windows 8.1 64位。

Please guide me to install this ionic.

请引导我安装这个离子。

\node-sass\build\binding.sln" (default target) (1) ->
(_src_\libsass target) ->
  ..\..\src\libsass\include\sass/base.h(18): fatal error C1083: Cannot open inc
lude file: 'stdbool.h': No such file or directory [C:\Users\guru.ramachandran\A
ppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln]
  ..\..\src\libsass\include\sass/base.h(18): fatal error C1083: Cannot open inc
lude file: 'stdbool.h': No such file or directory [C:\Users\guru.ramachandran\A
ppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln]
  c:\users\guru.ramachandran\appdata\roaming\npm\node_modules\ionic\node_module
s\node-sass\src\libsass\src\units.hpp(10): error C2668: 'acos' : ambiguous call
 to overloaded function [C:\Users\guru.ramachandran\AppData\Roaming\npm\node_mo
dules\ionic\node_modules\node-sass\build\binding.sln]
  c:\users\guru.ramachandran\appdata\roaming\npm\node_modules\ionic\node_module
s\node-sass\src\libsass\src\ast.hpp(12): fatal error C1083: Cannot open include
 file: 'unordered_map': No such file or directory [C:\Users\guru.ramachandran\A
ppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln]
  c:\users\guru.ramachandran\appdata\roaming\npm\node_modules\ionic\node_module
s\node-sass\src\libsass\src\ast.hpp(12): fatal error C1083: Cannot open include
 file: 'unordered_map': No such file or directory [C:\Users\guru.ramachandran\A
ppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln]
  ..\..\src\libsass\include\sass/values.h(5): fatal error C1083: Cannot open in
clude file: 'stdbool.h': No such file or directory [C:\Users\guru.ramachandran\
AppData\Roaming\npm\node_modules\ionic\node_modules\node-sass\build\binding.sln

1 个解决方案

#1


0  

The issue is about node-gyp module, which requires VS2013-VS2015 to build components at this time, in their README file, they say

他们说,这个问题是关于node-gyp模块的,它要求VS2013-VS2015在这个时候在他们的README文件中构建组件。

Option 1

选项1

Install all the required tools and configurations using Microsoft's windows-build-tools using

使用微软的windows构建工具安装所有必需的工具和配置。

npm install --global --production windows-build-tools

npm安装——全球——生产windows构建工具。

from an elevated PowerShell or CMD.exe (run as Administrator).

从高架的PowerShell或CMD。exe(以管理员身份运行)。

Option 2

选项2

Install tools and configuration manually:

手动安装工具和配置:

Visual C++ Build Environment:

Visual c++编译环境:

Option 1: Install Visual C++ Build Tools using the Default Install option.

选项1:使用默认安装选项安装Visual c++构建工具。

Option 2: Install Visual Studio 2015 (or modify an existing installation) and select Common Tools for Visual C++ during setup. This also works with the free Community and Express for Desktop editions.

选项2:安装Visual Studio 2015(或修改现有安装),并在安装过程中为Visual c++选择通用工具。这也适用于免费社区和Express的桌面版本。

[Windows Vista / 7 only] requires .NET Framework 4.5.1 Install Python 2.7 (v3.x.x is not supported), and run npm config set python python2.7 (or see below for further instructions on specifying the proper Python version and path.)

[windowsvista / 7]需要。net Framework 4.5.1安装Python 2.7 (v3.x)。(不支持x),并运行npm配置集python python2.7(或参阅下面关于指定合适的python版本和路径的进一步说明)。

Launch cmd, npm config set msvs_version 2015

启动cmd, npm配置设置msvs_version 2015。

Source: https://github.com/nodejs/node-gyp

来源:https://github.com/nodejs/node-gyp

#1


0  

The issue is about node-gyp module, which requires VS2013-VS2015 to build components at this time, in their README file, they say

他们说,这个问题是关于node-gyp模块的,它要求VS2013-VS2015在这个时候在他们的README文件中构建组件。

Option 1

选项1

Install all the required tools and configurations using Microsoft's windows-build-tools using

使用微软的windows构建工具安装所有必需的工具和配置。

npm install --global --production windows-build-tools

npm安装——全球——生产windows构建工具。

from an elevated PowerShell or CMD.exe (run as Administrator).

从高架的PowerShell或CMD。exe(以管理员身份运行)。

Option 2

选项2

Install tools and configuration manually:

手动安装工具和配置:

Visual C++ Build Environment:

Visual c++编译环境:

Option 1: Install Visual C++ Build Tools using the Default Install option.

选项1:使用默认安装选项安装Visual c++构建工具。

Option 2: Install Visual Studio 2015 (or modify an existing installation) and select Common Tools for Visual C++ during setup. This also works with the free Community and Express for Desktop editions.

选项2:安装Visual Studio 2015(或修改现有安装),并在安装过程中为Visual c++选择通用工具。这也适用于免费社区和Express的桌面版本。

[Windows Vista / 7 only] requires .NET Framework 4.5.1 Install Python 2.7 (v3.x.x is not supported), and run npm config set python python2.7 (or see below for further instructions on specifying the proper Python version and path.)

[windowsvista / 7]需要。net Framework 4.5.1安装Python 2.7 (v3.x)。(不支持x),并运行npm配置集python python2.7(或参阅下面关于指定合适的python版本和路径的进一步说明)。

Launch cmd, npm config set msvs_version 2015

启动cmd, npm配置设置msvs_version 2015。

Source: https://github.com/nodejs/node-gyp

来源:https://github.com/nodejs/node-gyp