-
Notifications
You must be signed in to change notification settings - Fork 11
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
having problems with node-sass #91
Comments
Do you have Python installed? |
I do now and still get new errors: C:\laragon\www\ticketlearn |
why do I need python? I got another laravel project and I do not have any problems there to build node-sass. Does this has to do with this project using gulp, since I do not use gulp in my private laravel project, but I use webpack and mix. |
And you tried |
@EmilMoe yes that is all good, but I dont think mixing yarn and npm is good. Is there equivalent method I can use with yarn to rebuild node-sass? |
I just bought the course, first run composer install and then tried to run yarn to get all the necessary javascript stuff. I end up with the error below. How do I get around it? Has anyone else had this? Do I actually need to run yarn to get javascript stuff or is that not required to complete the course? I'm not sure since the author does not mention these steps, I am doing what I normally do with laravel application.
[4/4] Building fresh packages...
[1/1] ⠈ node-sass: checking for Python executable "python2" in the PATH
[-/1] ⠈ waiting...
[-/1] ⠈ waiting...
[-/1] ⠈ waiting...
error C:\laragon\www\ticketlearn\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: C:\laragon\www\ticketlearn\node_modules\node-sass
Output:
Building: C:\laragon\bin\nodejs\node-v8\node.exe C:\laragon\www\ticketlearn\node_modules\node-gyp\bin\node-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:\laragon\bin\nodejs\node-v8\node.exe',
gyp verb cli 'C:\laragon\www\ticketlearn\node_modules\node-gyp\bin\node-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:\laragon\www\ticketlearn\node_modules\which\which.js:14:12)gyp verb
which
failed at F (C:\laragon\www\ticketlearn\node_modules\which\which.js:69:19)gyp verb
which
failed at E (C:\laragon\www\ticketlearn\node_modules\which\which.js:81:29)gyp verb
which
failed at C:\laragon\www\ticketlearn\node_modules\which\which.js:90:16gyp verb
which
failed at C:\laragon\www\ticketlearn\node_modules\isexe\index.js:44:5gyp verb
which
failed at C:\laragon\www\ticketlearn\node_modules\isexe\windows.js:29:5gyp 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:\laragon\www\ticketlearn\node_modules\which\which.js:14:12)gyp verb
which
failed at F (C:\laragon\www\ticketlearn\node_modules\which\which.js:69:19)gyp verb
which
failed at E (C:\laragon\www\ticketlearn\node_modules\which\which.js:81:29)gyp verb
which
failed at C:\laragon\www\ticketlearn\node_modules\which\which.js:90:16gyp verb
which
failed at C:\laragon\www\ticketlearn\node_modules\isexe\index.js:44:5gyp verb
which
failed at C:\laragon\www\ticketlearn\node_modules\isexe\windows.js:29:5gyp 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:\laragon\www\ticketlearn\node_modules\which\which.js:14:12)gyp verb
which
failed at F (C:\laragon\www\ticketlearn\node_modules\which\which.js:69:19)gyp verb
which
failed at E (C:\laragon\www\ticketlearn\node_modules\which\which.js:81:29)gyp verb
which
failed at C:\laragon\www\ticketlearn\node_modules\which\which.js:90:16gyp verb
which
failed at C:\laragon\www\ticketlearn\node_modules\isexe\index.js:44:5gyp verb
which
failed at C:\laragon\www\ticketlearn\node_modules\isexe\windows.js:29:5gyp 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:\laragon\www\ticketlearn\node_modules\which\which.js:14:12)gyp verb
which
failed at F (C:\laragon\www\ticketlearn\node_modules\which\which.js:69:19)gyp verb
which
failed at E (C:\laragon\www\ticketlearn\node_modules\which\which.js:81:29)gyp verb
which
failed at C:\laragon\www\ticketlearn\node_modules\which\which.js:90:16gyp verb
which
failed at C:\laragon\www\ticketlearn\node_modules\isexe\index.js:44:5gyp verb
which
failed at C:\laragon\www\ticketlearn\node_modules\isexe\windows.js:29:5gyp 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:\laragon\www\ticketlearn\node_modules\node-gyp\lib\configure.js:449:14)
gyp ERR! stack at C:\laragon\www\ticketlearn\node_modules\node-gyp\lib\configure.js:404:11
gyp ERR! stack at C:\laragon\www\ticketlearn\node_modules\graceful-fs\polyfills.js:264:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\laragon\bin\nodejs\node-v8\node.exe" "C:\laragon\www\ticketlearn\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\laragon\www\ticketlearn\node_modules\node-sass
gyp ERR! node -v v8.9.1
The text was updated successfully, but these errors were encountered: