While hitting npm run twill-build --script-shell bash i get this error on fresh installation.
which failed Error: not found: python2.7 gyp verb which failed at getNotFoundError (C:\xampp\htdocs\twill\vendor\area17\twill\node_moduleswhichwhich.js:13:12) gyp verb which failed at F (C:\xampp\htdocs\twill\vendor\area17\twill\node_moduleswhichwhich.js:68:19) gyp verb which failed at E (C:\xampp\htdocs\twill\vendor\area17\twill\node_moduleswhichwhich.js:80:29) gyp verb which failed at C:\xampp\htdocs\twill\vendor\area17\twill\node_moduleswhichwhich.js:89:16 gyp verb which failed at C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\isexe\index.js:42:5 gyp verb which failed at C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\isexe\windows.js:36:5 gyp verb which failed at FSReqCallback.oncomplete (fs.js:159:21) gyp verb which failed python2.7 { Error: not found: python2.7 gyp verb which failed at getNotFoundError (C:\xampp\htdocs\twill\vendor\area17\twill\node_moduleswhichwhich.js:13:12) gyp verb which failed at F (C:\xampp\htdocs\twill\vendor\area17\twill\node_moduleswhichwhich.js:68:19) gyp verb which failed at E (C:\xampp\htdocs\twill\vendor\area17\twill\node_moduleswhichwhich.js:80:29) gyp verb which failed at C:\xampp\htdocs\twill\vendor\area17\twill\node_moduleswhichwhich.js:89:16 gyp verb which failed at C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\isexe\index.js:42:5 gyp verb which failed at C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\isexe\windows.js:36:5 gyp verb which failed at FSReqCallback.oncomplete (fs.js:159:21) gyp verb which failed stack: gyp verb which failed 'Error: not found: python2.7\n at getNotFoundError (C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\which\which.js:13:12)\n at F (C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\which\which.js:68:19)\n a t E (C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\which\which.js:80:29)\n at C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\which\which.js:89:16\n at C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\isexe\index.js: 42:5\n at C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\isexe\windows.js:36:5\n at FSReqCallback.oncomplete (fs.js:159:21)', gyp verb which failed code: 'ENOENT' } gyp verb could not find "python2.7". checking python launcher gyp verb could not find "python2.7". guessing location gyp verb ensuring that file exists: C:\Python27\python.exe gyp verb check python version C:\Python27\python.exe -c "import sys; print "2.7.15 gyp verb check python version .%s.%s" % sys.version_info[:3];" returned: %j gyp verb get node dir no --target version specified, falling back to host node version: 11.8.0 gyp verb command install [ '11.8.0' ] gyp verb install input version string "11.8.0" gyp verb install installing version: 11.8.0 gyp verb install --ensure was passed, so won't reinstall if already installed gyp verb install version is already installed, need to check "installVersion" gyp verb got "installVersion" 9 gyp verb needs "installVersion" 9 gyp verb install version is good gyp verb get node dir target node version installed: 11.8.0 gyp verb build dir attempting to create "build" dir: C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build gyp verb build dir "build" dir needed to be created? C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build gyp verb build/config.gypi creating config file gyp verb build/config.gypi writing out config file: C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\config.gypi gyp verb config.gypi checking for gypi file: C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\config.gypi gyp verb common.gypi checking for gypi file: C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\common.gypi gyp verb gyp gyp format was not specified; forcing "msvs" gyp info spawn C:\Python27\python.exe gyp info spawn args [ 'C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-gyp\gyp\gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'msvs', gyp info spawn args '-G', gyp info spawn args 'msvs_version=2012', gyp info spawn args '-I', gyp info spawn args 'C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\config.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-gyp\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\Users\fmvm\.node-gyp\11.8.0\include\node\common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=C:\Users\fmvm\.node-gyp\11.8.0', gyp info spawn args '-Dnode_gyp_dir=C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-gyp', gyp info spawn args '-Dnode_lib_file=C:\Users\fmvm\.node-gyp\11.8.0\<(target_arch)\node.lib', gyp info spawn args '-Dmodule_root_dir=C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build', gyp info spawn args '-Goutput_dir=.' ] gyp verb command build [] gyp verb build type Release gyp verb architecture x64 gyp verb node dev dir C:\Users\fmvm.node-gyp\11.8.0 gyp verb found first Solution file build/binding.sln gyp verb could not find "msbuild.exe" in PATH - finding location in registry gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe gyp info spawn args [ 'build/binding.sln', gyp info spawn args '/nologo', gyp info spawn args '/p:Configuration=Release;Platform=x64' ] Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. Build started 2/1/2019 12:04:31 PM. Project "C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\binding.sln" on node 1 (default targets). ValidateSolutionConfiguration: Building solution configuration "Release\|x64". Project "C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\binding.sln" (1) is building "C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\binding.vcxproj.metaproj" (2) on node 1 (default targets). Project "C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\binding.vcxproj.metaproj" (2) is building "C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\src\libsass.vcxproj" (3) on node 1 (default targets). C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\src\libsass.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. Done Building Project "C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\src\libsass.vcxproj" (default targets) -- FAILED. Done Building Project "C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\binding.vcxproj.metaproj" (default targets) -- FAILED. Done Building Project "C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\binding.sln" (default targets) -- FAILED. Build FAILED. "C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\binding.sln" (default target) (1) -> "C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\binding.vcxproj.metaproj" (default target) (2) -> "C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\src\libsass.vcxproj" (default target) (3) -> C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass\build\src\libsass.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. 0 Warning(s) 1 Error(s) Time Elapsed 00:00:01.47 gyp ERR! build error gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-gyp\lib\build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:197:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12) gyp ERR! System Windows_NT 6.3.9600 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd C:\xampp\htdocs\twill\vendor\area17\twill\node_modules\node-sass gyp ERR! node -v v11.8.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: node scripts/build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.Can anyone help me ??
Are you able to install node-sass separately (not as a part of twill build command)?
It seems to me like node-sass npm module installation failed because it could not be build.
Yes separately it gets installed successfully.
@faisalbhatti10 the error returned is "error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.".
Did you try following this? I would guess it's a problem with permission.
I'm facing same issue on Ubuntu,
Please help to resolve it.
Also tried node-sass, it also giving same error
Hey @vrdvishwas ,
Can you provide a more info, please?
If you can create a _gist_ with the output of the console while running the twill-build, we will be able to help you sort the issue.
Best.
I got the problem in node version
Actually node-sass is not supporting for node version 11.*
I'm try to resolve this at my end.
Vishal Chanana
Web Developer
+91 995 897 3512
On Sat, Mar 16, 2019 at 7:41 PM Pablo Barrios notifications@github.com
wrote:
Hey @vrdvishwas https://github.com/vrdvishwas ,
Can you provide a more info, please?
If you can create a gist with the output of the console while running
the twill-build, we will be able to help you sort the issue.Best.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/area17/twill/issues/176#issuecomment-473533699, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AH0kb5IUX6eZXTstyg7lPz1MG_fci1mPks5vXPufgaJpZM4adySc
.
@vrdvishwas I'd recommend downgrading the node version and try again.
This post may help you.
@vrdvishwas Twill 1.2.1 has been updated to Laravel Mix 4 and now uses the Dart implementation of Sass, not node-sass anymore, can you give it a shot?
gyp ERR! stack Error: EACCES: permission denied, mkdir
'/var/www/html/vrdvishwas/CoreSiteCMS/vendor/area17/twill/node_modules/node-sass/build'
gyp ERR! System Linux 4.15.0-46-generic
gyp ERR! command "/usr/local/bin/node"
"/var/www/html/vrdvishwas/CoreSiteCMS/vendor/area17/twill/node_modules/node-gyp/bin/node-gyp.js"
"rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags="
"--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd
/var/www/html/vrdvishwas/CoreSiteCMS/vendor/area17/twill/node_modules/node-sass
gyp ERR! node -v v11.10.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vrdvishwas/.npm/_logs/2019-03-16T17_18_12_947Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ twill-build: rm -f public/hot && npm run twill-copy-blocks &&
cd vendor/area17/twill && npm ci && npm run prod && cp -r public/*
${INIT_CWD}/public
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ twill-build script.
npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vrdvishwas/.npm/_logs/2019-03-16T17_18_14_528Z-debug.log
Vishal Chanana
Web Developer
+91 995 897 3512
On Sat, Mar 16, 2019 at 10:41 PM Quentin Renard notifications@github.com
wrote:
@vrdvishwas https://github.com/vrdvishwas Twill 1.2.1 has been updated
to Laravel Mix 4 and now uses the Dart implementation of Sass, not
node-sass anymore, can you give it a shot?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/area17/twill/issues/176#issuecomment-473566358, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AH0kb-93ATg4gEWDqnnDMx5se_pvOXGCks5vXSXAgaJpZM4adySc
.
Thanks Twill Team (Area17)
It working now,
i forget to update composer and npm run again
:-) :+1: :100:
Most helpful comment
Thanks Twill Team (Area17)
It working now,
i forget to update composer and npm run again
:-) :+1: :100: