Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Build issues on Windows environments #12

Closed
gordongrace opened this issue Apr 16, 2018 · 2 comments
Closed

Build issues on Windows environments #12

gordongrace opened this issue Apr 16, 2018 · 2 comments
Labels
🐛 bug Something isn’t working the way it should.

Comments

@gordongrace
Copy link
Contributor

Error generated on fresh Windows 10 environment after NodeJS install and running through build instructions for uikit-starter:

C:\Users\USER\Documents\Code\uikit-starter\node_modules\uws>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\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 PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.16299
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:\Users\USER\Documents\Code\uikit-starter\node_modules\uws
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok

Running npm install sass manually before re-running npm install for ui-kit-starter appeared to solve the issue

@alex-page
Copy link
Contributor

Hi @gordongrace thanks for the detailed issue.

I currently don't have a windows device however I'm happy to look into this in more detail tomorrow.

I did a google search around the error you received.

Error: Can't find Python executable "python"

It sounds like there is a problem with Windows 10 connecting to python with NPM. Maybe you can have a look at this issue for windows build tools: felixrieseberg/windows-build-tools#56 (comment)

Another solution may be removing your node_modules folder and running npm install again.

@alex-page alex-page added the 🐛 bug Something isn’t working the way it should. label May 2, 2018
@alex-page alex-page added this to ✏️ Sprint backlog in Design System May 2, 2018
@alex-page alex-page moved this from ✏️ Sprint backlog to 🏗 Doing in Design System May 7, 2018
@alex-page
Copy link
Contributor

I just installed the uikit-starter on windows without any issues. Potentially the download for node-sass failed which is why reinstalling it fixed your problem.

If you notice the problem again please let me know happy to re open the issue.

Design System automation moved this from 🏗 Doing to 🚀Done May 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Something isn’t working the way it should.
Projects
None yet
Development

No branches or pull requests

2 participants