Comments (5)
Can't find Python executable "python", you can set the PYTHON env variable.
You nee to install python. See https://github.com/nodejs/node-gyp#installation
from angular-webpack-starter.
Hi @DzmitryShylovich, I tried that before and it got worse :-(
I tried once more following the link you mentioned, and the problem now is:
npm install lodash --save
[email protected] install c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-zopfli
node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download: https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v48-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v48 ABI) (falling back to source compile with node-gyp)
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error
MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK vers
ion in the project property pages or by right-clicking the solution and selecting "Retarget solution". [c:\WORK\GraoDeG
ente\angular2webpack2-starter\node_modules\node-zopfli\build\zopfli.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14379
gyp ERR! command "C:\Program Files\nodejs\node.exe" "c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-zopfli\lib\binding\node-v48-win32-x64\zopfli.node" "--module_name=zopfli" "--module_path=c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-zopfli\lib\binding\node-v48-win32-x64"
gyp ERR! cwd c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-zopfli
gyp ERR! node -v v6.6.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-zopfli\lib\binding\node-v48-win32-x64\zopfli.node --module_name=zopfli --module_path=c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-zopfli\lib\binding\node-v48-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.14379
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-zopfli
node-pre-gyp ERR! node -v v6.6.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.30
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-zopfli\lib\binding\node-v48-win32-x64\zopfli.node --module_name=zopfli --module_path=c:\WORK\GraoDeGente\angular2webpack2-starter\node_modules\node-zopfli\lib\binding\node-v48-win32-x64' (1)
npm WARN install:[email protected] [email protected] install: node-pre-gyp install --fallback-to-build
npm WARN install:[email protected] Exit status 1
[email protected] c:\WORK\GraoDeGente\angular2webpack2-starter
`-- [email protected]
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
from angular-webpack-starter.
@felipedrumond I just tested on VM, doing this like on the link @DzmitryShylovich gave should solve the issue:
Option 1: Install all the required tools and configurations using Microsoft's windows-build-tools using
npm install --global --production windows-build-tools
from an elevated PowerShell or CMD.exe (run as Administrator).
After that, then next time your run npm install, it should download the needed dependencies and be fine after that. Let me know if that doesn't solve it and I'll re-open.
from angular-webpack-starter.
Hi @qdouble, it still throw errors. My environment is a VM with W10 Enteprise, VS 2015, Node 6.2.1.
C:\WORK\GraoDeGente\graoDeGenteApp>npm install rimraf
[email protected] install C:\WORK\GraoDeGente\graoDeGenteApp\node_modules\timekit
node-gyp rebuild
C:\WORK\GraoDeGente\graoDeGenteApp\node_modules\timekit>if not defined npm_config_node_gyp (node "C:\Users\Felipe Drumond\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.
1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and
selecting "Retarget solution". [C:\WORK\GraoDeGente\graoDeGenteApp\node_modules\timekit\build\timekit.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Felipe Drumond\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Windows_NT 10.0.14379
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Felipe Drumond\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\WORK\GraoDeGente\graoDeGenteApp\node_modules\timekit
gyp ERR! node -v v6.2.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
[email protected] install C:\WORK\GraoDeGente\graoDeGenteApp\node_modules\v8tools
node-gyp rebuild
C:\WORK\GraoDeGente\graoDeGenteApp\node_modules\v8tools>if not defined npm_config_node_gyp (node "C:\Users\Felipe Drumond\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.
1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and
selecting "Retarget solution". [C:\WORK\GraoDeGente\graoDeGenteApp\node_modules\v8tools\build\v8tools.vcxproj]
from angular-webpack-starter.
Have you tried to the do the retarget solution thing? I'm also demoed it using Windows 10 on VM (Parallels Desktop, if that makes any difference), and the npm install --global --production windows-build-tools
and then running npm i again alone fixed it for me. You could also try to see if you can download and install the Windows SDK version it's stating in the error message.
from angular-webpack-starter.
Related Issues (20)
- file is not exists
- Error in universal:AOT build: Cannot find module './ngfactory/app/server.app.module.ngfactory'. HOT 3
- How to add fonts HOT 3
- Can you rename the repository? HOT 2
- warnings when running `yarn` HOT 1
- AOT and platform-browser-dynamic HOT 1
- Is there a simple example that mimics communication between sibling components? HOT 1
- Is this project still active ? HOT 1
- Http(Client)Module has changed
- Typescript source maps HOT 2
- Webpack 4 / Angular 6 HOT 7
- yarn test failing HOT 2
- Ability to skip bundle analysis for CI prod builds HOT 1
- Getting "Cannot find module 'zone.js/dist/zone-node'" when deploying on production server HOT 6
- Can't run tests, at-loader can't find .ts files! HOT 1
- Getting error running Universal out of the box HOT 3
- Can you please add comments to your code. HOT 1
- How to see karma output in debug window? HOT 6
- Issue with npm/Yarn Install HOT 2
- Angular 7 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-webpack-starter.