-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yarn install doesn't work on windows 10 #10
Comments
Hey Jon - looking into this. I think it also has something to do with the
dependency on Node.js. I think a lower Node version would solve it, but
will check this out now on my machine.
…On 2 March 2018 at 15:43, Jon ***@***.***> wrote:
I basically get the below errors, I have hunted around the web to try and
find out specifically whats wrong but at a loss for the moment. Paid a lot
for the course and cant get started
$ yarn install
yarn install v1.5.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info ***@***.***: The platform "win32" is incompatible with this
module.
info ***@***.***" is an optional dependency and failed compatibility
check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/1] ⠄ node-sass: checking for Python executable "python" in the PATH
[-/1] ⠄ waiting...
[-/1] ⡀ waiting...
[-/1] ⡀ waiting...
error An unexpected error occurred: "C:\Users\jmosley\Documents\
Development\angular-fundamentals-seed
ode_modules
ode-sass: Command failed.
Exit code: 1
Command: C:\WINDOWS\system32\cmd.exe
Arguments: /d /s /c node scripts/build.js
Directory: C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules
ode-sass
Output:
Building: C:\Program Files
odejs
ode.exe C:\Users\jmosley\Documents\Development\angular-fundamentals-seed
ode_modules
ode-gyp\bin
ode-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags=
--libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Program Files\
odejs\
ode.exe',
gyp verb cli 'C:\\Users\\jmosley\\Documents\\Development\\
angular-fundamentals-seed\
ode_modules\
ode-gyp\\bin\
ode-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using ***@***.***
gyp info using ***@***.*** | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (C:\Users\jmosley\Documents\
Development\angular-fundamentals-seed
ode_modules\which\which.js:13:12)
gyp verb which failed at F (C:\Users\jmosley\Documents\
Development\angular-fundamentals-seed
ode_modules\which\which.js:68:19)
gyp verb which failed at E (C:\Users\jmosley\Documents\
Development\angular-fundamentals-seed
ode_modules\which\which.js:80:29)
gyp verb which failed at C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules\which\which.js:89:16
gyp verb which failed at C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules\isexe\index.js:44:5
gyp verb which failed at C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules\isexe\windows.js:29:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed python2 { Error: not found: python2
gyp verb which failed at getNotFoundError (C:\Users\jmosley\Documents\
Development\angular-fundamentals-seed
ode_modules\which\which.js:13:12)
gyp verb which failed at F (C:\Users\jmosley\Documents\
Development\angular-fundamentals-seed
ode_modules\which\which.js:68:19)
gyp verb which failed at E (C:\Users\jmosley\Documents\
Development\angular-fundamentals-seed
ode_modules\which\which.js:80:29)
gyp verb which failed at C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules\which\which.js:89:16
gyp verb which failed at C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules\isexe\index.js:44:5
gyp verb which failed at C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules\isexe\windows.js:29:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21) code:
'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which failed Error: not found: python
gyp verb which failed at getNotFoundError (C:\Users\jmosley\Documents\
Development\angular-fundamentals-seed
ode_modules\which\which.js:13:12)
gyp verb which failed at F (C:\Users\jmosley\Documents\
Development\angular-fundamentals-seed
ode_modules\which\which.js:68:19)
gyp verb which failed at E (C:\Users\jmosley\Documents\
Development\angular-fundamentals-seed
ode_modules\which\which.js:80:29)
gyp verb which failed at C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules\which\which.js:89:16
gyp verb which failed at C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules\isexe\index.js:44:5
gyp verb which failed at C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules\isexe\windows.js:29:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed python { Error: not found: python
gyp verb which failed at getNotFoundError (C:\Users\jmosley\Documents\
Development\angular-fundamentals-seed
ode_modules\which\which.js:13:12)
gyp verb which failed at F (C:\Users\jmosley\Documents\
Development\angular-fundamentals-seed
ode_modules\which\which.js:68:19)
gyp verb which failed at E (C:\Users\jmosley\Documents\
Development\angular-fundamentals-seed
ode_modules\which\which.js:80:29)
gyp verb which failed at C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules\which\which.js:89:16
gyp verb which failed at C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules\isexe\index.js:44:5
gyp verb which failed at C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules\isexe\windows.js:29:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21) code:
'ENOENT' }
gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
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:\Users\jmosley\Documents\
Development\angular-fundamentals-seed
ode_modules
ode-gyp\lib\configure.js:449:14)
gyp ERR! stack at C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules
ode-gyp\lib\configure.js:404:11
gyp ERR! stack at C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_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\
odejs\
ode.exe" "C:\\Users\\jmosley\\Documents\\Development\\
angular-fundamentals-seed\
ode_modules\
ode-gyp\\bin\
ode-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags="
"--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\jmosley\Documents\Development\angular-
fundamentals-seed
ode_modules
ode-sass
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.4.0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#10>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABlEoJVyg7RT2khOGCy2zfcz22dm7zE9ks5taWiTgaJpZM4SaFFv>
.
--
@toddmotto
|
Wow! Thanks for the super fast response Todd. I will also test and see |
A few others have reached out today (coincidentally) so either something
globally's being strange or everyone on Windows is having Node issues with
this setup! Will report back shortly. :)
…On 2 March 2018 at 15:50, Jon ***@***.***> wrote:
Wow! Thanks for the super fast response Todd. I will also test and see
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABlEoAMBA_05-06pw_EpyXMGJL0qLaNcks5taWo7gaJpZM4SaFFv>
.
--
@toddmotto
|
Brill! Thanks Todd :) |
It seems like your thinking on the issue was spot on Todd! I dropped back a whole version (node 7.10.1) and all works. |
Someone else has confirmed this - I've added a temporary note to that Installation video lesson for others - will check out what we need to fix this for users. Will keep the issue open! :) |
I had this problem. Starting the course and coming crashing to a halt is not a good experience! For me, changing my node version wasn't an option. I think the install needed a pre-built package (or something) that wasn't available, and so tried to rebuild it. That failed because node-gyp and its prerequisites were not installed. I think. So, with elevated privileges I installed npm install --global --production windows-build-tools and then i did npm install --global node-gyp and then added python to my environment variables: set PYTHON "%USERPROFILE%.windows-build-tools\python27\python.exe" and then the yarn install worked. ..bit of a faff tho! |
this worked for me. only had to change this line set PYTHON "%USERPROFILE%.windows-build-tools\python27\python.exe" -> set PYTHON "%USERPROFILE%\.windows-build-tools\python27\python.exe" notice the "\" after %USERPROFILE% |
I had the same problem and found one easy solution without degrading my node version.
Close all cmd instances and run |
I am facing the same issue trying to |
I have messed around trying to get this up and running. My seed project now builds but when i open localhost:4000 there is no Hello!. It is just a blank white screen. --edit: got my hello to finally appear. re-did everything from start with both 7.10 and windows-build-tools. Also used 2.7rc15 python. for anyone else having issues . |
Just created my own base project using CLI. The only downside is I need to now run the json-server on a separate port but that's easier than struggling with this. |
try my solution here #11
|
Awesome, this worked for me! |
Hey todd I am trying to install this locally get the following error, is this enything to do with node version Project "F:\Development Environment\Angular\ultimateAngular\angular-fundamentals-seed\node_modules\node-sass\build\binding.sln" on node 1 (default targets). Build FAILED. "F:\Development Environment\Angular\ultimateAngular\angular-fundamentals-seed\node_modules\node-sass\build\binding.sln" (default target) (1) ->
Time Elapsed 00:00:00.45 |
following StrangeCargo74 from above worked for me |
I just installed Node v8.11.2 (with npm v6.1.0) and did a |
Thanks @eakoning But it is compiling and everything is working. |
@omarzahidwavelet I found this Stackoverflow post indicating there's a compatibility issue between certain versions of node and node-sass. |
Thanks @eakoning, |
Hi @toddmotto, |
This worked @StrangeCargo74 - Just add a backslash after %USERPROFILE% Remove the node_modules folder and re-run yarn Original Post
|
I had the issue The fix is to change node-sass to the latest version: "4.14.0" |
I had the same issues with my Windows10.
|
Just do the following in package.json before yarn install: delete the line "node-sass": "^4.9.0", |
I basically get the below errors, I have hunted around the web to try and find out specifically whats wrong but at a loss for the moment. Paid a lot for the course and cant get started
$ yarn install
yarn install v1.5.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/1] ⠄ node-sass: checking for Python executable "python" in the PATH
[-/1] ⠄ waiting...
[-/1] ⡀ waiting...
[-/1] ⡀ waiting...
error An unexpected error occurred: "C:\Users\jmosley\Documents\Development\angular-fundamentals-seed
ode_modules
ode-sass: Command failed.
Exit code: 1
Command: C:\WINDOWS\system32\cmd.exe
Arguments: /d /s /c node scripts/build.js
Directory: C:\Users\jmosley\Documents\Development\angular-fundamentals-seed
ode_modules
ode-sass
Output:
Building: C:\Program Files
odejs
ode.exe C:\Users\jmosley\Documents\Development\angular-fundamentals-seed
ode_modules
ode-gyp\bin
ode-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Program Files\
odejs\
ode.exe',
gyp verb cli 'C:\\Users\\jmosley\\Documents\\Development\\angular-fundamentals-seed\
ode_modules\
ode-gyp\\bin\
ode-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb
which
failed Error: not found: python2gyp verb
which
failed at getNotFoundError (C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:13:12)
gyp verb
which
failed at F (C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:68:19)
gyp verb
which
failed at E (C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:80:29)
gyp verb
which
failed at C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:89:16
gyp verb
which
failed at C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\isexe\index.js:44:5
gyp verb
which
failed at C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\isexe\windows.js:29:5
gyp verb
which
failed at FSReqWrap.oncomplete (fs.js:152:21)gyp verb
which
failed python2 { Error: not found: python2gyp verb
which
failed at getNotFoundError (C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:13:12)
gyp verb
which
failed at F (C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:68:19)
gyp verb
which
failed at E (C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:80:29)
gyp verb
which
failed at C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:89:16
gyp verb
which
failed at C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\isexe\index.js:44:5
gyp verb
which
failed at C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\isexe\windows.js:29:5
gyp verb
which
failed at FSReqWrap.oncomplete (fs.js:152:21) code: 'ENOENT' }gyp verb check python checking for Python executable "python" in the PATH
gyp verb
which
failed Error: not found: pythongyp verb
which
failed at getNotFoundError (C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:13:12)
gyp verb
which
failed at F (C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:68:19)
gyp verb
which
failed at E (C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:80:29)
gyp verb
which
failed at C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:89:16
gyp verb
which
failed at C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\isexe\index.js:44:5
gyp verb
which
failed at C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\isexe\windows.js:29:5
gyp verb
which
failed at FSReqWrap.oncomplete (fs.js:152:21)gyp verb
which
failed python { Error: not found: pythongyp verb
which
failed at getNotFoundError (C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:13:12)
gyp verb
which
failed at F (C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:68:19)
gyp verb
which
failed at E (C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:80:29)
gyp verb
which
failed at C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\which\which.js:89:16
gyp verb
which
failed at C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\isexe\index.js:44:5
gyp verb
which
failed at C:\Users\jmosley\Documents\Development\angular-fundamentals-seedode_modules\isexe\windows.js:29:5
gyp verb
which
failed at FSReqWrap.oncomplete (fs.js:152:21) code: 'ENOENT' }gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
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:\Users\jmosley\Documents\Development\angular-fundamentals-seed
ode_modules
ode-gyp\lib\configure.js:449:14)
gyp ERR! stack at C:\Users\jmosley\Documents\Development\angular-fundamentals-seed
ode_modules
ode-gyp\lib\configure.js:404:11
gyp ERR! stack at C:\Users\jmosley\Documents\Development\angular-fundamentals-seed
ode_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\
odejs\
ode.exe" "C:\\Users\\jmosley\\Documents\\Development\\angular-fundamentals-seed\
ode_modules\
ode-gyp\\bin\
ode-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\jmosley\Documents\Development\angular-fundamentals-seed
ode_modules
ode-sass
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.4.0
The text was updated successfully, but these errors were encountered: