Aurelia npm installation: tons of "gyp ERR"

These types of questions are dozens of dozens, and I went through the resource after the resource, but nothing works:

Here's a deal, I'm pretty new to NodeJS and Aurelia, however my preliminary experience is that with the advent of the recent revolutionary revolution and with all its tools, people really made things deceptively simple. I am sure that we all saw commands similar to: "just run do my-work-for-me, and your project will be completed!"

Take, for example, the Aurelia guide . After going to the working directory, all you need to do is:

npm install

Well no. npm installdepends on node-gypwhich you must install manually. Well, you cannot install node-gypbefore installing Python. But do not get the latest version, since> 3.x is not supported. After that, you will encounter problems with the C ++ compilers required node-gyp. Therefore, we install Microsoft VS 2012 to get compilers.

What I've done:

  • Set PYTHON as an environment variable

     C:\Users\[name]>py
      Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)] on win32
      Type "help", "copyright", "credits" or "license" for more information.
    
  • Install the applicable version of VS in npm, as proven by the getter:

     C:\Users\[name]>npm config get msvs_version
     2012
    

However, I still encounter the following error when I try to start npm installfrom the destination directory of the application:

gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit c
ode: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\nod
e-gyp\lib\build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:88:13)
gyp ERR! stack     at ChildProcess.emit (events.js:173:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:201:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm
\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\_workspaces\skeleton-navigation-1.0.0-beta.1.0.2\node_modules\utf-8-validate
gyp ERR! node -v v5.2.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:utf-8-validate@1.2.1 utf-8-validate@1.2.1 install: `node-gyp rebuild`
npm WARN install:utf-8-validate@1.2.1 Exit status 1
+2
3

, , :

  • Node.js
  • Microsoft Visual Studio 2012
  • ++ 2010 x86/x64.
  • Node.js
  • Node.js npm
  • Microsoft Studio 2013 (- )

npm install Aurelia, - , .

  1. npm Microsoft Studio 2013, :

    npm config set msvs_version 2013 --global
    
  2. , , npm install GYP.

, , - node-gyp, , 2012 , , , 2013 , : https://github.com/nodejs/node-gyp

+2

node -style front-end. .

node gyp ERR! . , npm WARN optional dep failed, continuing [some dependency]

gyp ERR!, npm :

C:\repos\skeleton-navigation\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node
_modules\ws\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp
 else (node  rebuild ) s\node-gyp\bin\node-gyp.js" rebuild -)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:114:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:69:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\repos\skeleton-navigation\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.i
o-client\node_modules\ws\node_modules\utf-8-validate
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing utf-8-validate@1.2.1
+1

Visual Studio 2015 ++, Visual Studio 2015 Express , .

Windows 10 x64:

1 - Python

Python 2.7.x, 3.x. PATH, Python .

2 - Microsoft Visual ++ Build Tools 2015

, Win8.1, Win 10 SDK. , 11/20/2015.

Microsoft Visual ++ Build Tools 2015

3 - nodejs

5.3.0, node -gyp.

npm - msvs_version 2015

npm - global config set python c:\dev\Python27\python.exe

( , python, , PATH )

.

git https://github.com/aurelia/skeleton-navigation

cd skeleton-navigation

npm install

0
source

Source: https://habr.com/ru/post/1626325/


All Articles