OfficeDev / microsoft-teams-apps-survey

Survey is a custom Teams message extension app that enables users to ask a series of questions and get actionable insights by creating a survey in a chat or channel. Survey app is supported across all platforms – Teams desktop, browser, iOS, and Android clients. It is ready for deployment as part of your existing Microsoft 365 subscription.
MIT License
26 stars 8 forks source link

The package-lock.json file was created with an old version of npm #16

Open MelinaDevAdmin opened 2 years ago

MelinaDevAdmin commented 2 years ago

I am deploying this template and I keep receiving errors after the npm install

ven if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js. npm ERR! code 1 npm ERR! path C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\node-sass npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= npm ERR! gyp info it worked if it ends with ok npm ERR! gyp verb cli [ npm ERR! gyp verb cli 'C:\Program Files\nodejs\node.exe', npm ERR! gyp verb cli 'C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\node-gyp\bin\node-gyp.js', npm ERR! gyp verb cli 'rebuild', npm ERR! gyp verb cli '--verbose', npm ERR! gyp verb cli '--libsass_ext=', npm ERR! gyp verb cli '--libsass_cflags=', npm ERR! gyp verb cli '--libsass_ldflags=', npm ERR! gyp verb cli '--libsass_library=' npm ERR! gyp verb cli ] npm ERR! gyp info using node-gyp@3.8.0 npm ERR! gyp info using node@16.13.0 | win32 | x64 npm ERR! gyp verb command rebuild [] npm ERR! gyp verb command clean [] npm ERR! gyp verb clean removing "build" directory npm ERR! gyp verb command configure [] npm ERR! gyp verb check python checking for Python executable "python2" in the PATH npm ERR! gyp verb which failed Error: not found: python2 npm ERR! gyp verb which failed at getNotFoundError (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:13:12) npm ERR! gyp verb which failed at F (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:68:19) npm ERR! gyp verb which failed at E (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:80:29) npm ERR! gyp verb which failed at C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:89:16 npm ERR! gyp verb which failed at C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\isexe\index.js:42:5 npm ERR! gyp verb which failed at C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\isexe\windows.js:36:5 npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) npm ERR! gyp verb which failed python2 Error: not found: python2 npm ERR! gyp verb which failed at getNotFoundError (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:13:12) npm ERR! gyp verb which failed at F (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:68:19) npm ERR! gyp verb which failed at E (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:80:29) npm ERR! gyp verb which failed at C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:89:16 npm ERR! gyp verb which failed at C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\isexe\index.js:42:5 npm ERR! gyp verb which failed at C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\isexe\windows.js:36:5 npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) { npm ERR! gyp verb which failed code: 'ENOENT' npm ERR! gyp verb which failed } npm ERR! gyp verb check python checking for Python executable "python" in the PATH npm ERR! gyp verb which failed Error: not found: python npm ERR! gyp verb which failed at getNotFoundError (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:13:12) npm ERR! gyp verb which failed at F (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:68:19) npm ERR! gyp verb which failed at E (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:80:29) npm ERR! gyp verb which failed at C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:89:16 npm ERR! gyp verb which failed at C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\isexe\index.js:42:5 npm ERR! gyp verb which failed at C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\isexe\windows.js:36:5 npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) npm ERR! gyp verb which failed python Error: not found: python npm ERR! gyp verb which failed at getNotFoundError (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:13:12) npm ERR! gyp verb which failed at F (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:68:19) npm ERR! gyp verb which failed at E (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:80:29) npm ERR! gyp verb which failed at C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\which\which.js:89:16 npm ERR! gyp verb which failed at C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\isexe\index.js:42:5 npm ERR! gyp verb which failed at C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\isexe\windows.js:36:5 npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) { npm ERR! gyp verb which failed code: 'ENOENT' npm ERR! gyp verb which failed } npm ERR! gyp verb could not find "python". checking python launcher npm ERR! gyp verb could not find "python". guessing location npm ERR! gyp verb ensuring that file exists: C:\Python27\python.exe npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. npm ERR! gyp ERR! stack at PythonFinder.failNoPython (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\node-gyp\lib\configure.js:484:19) npm ERR! gyp ERR! stack at PythonFinder. (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\node-gyp\lib\configure.js:509:16) npm ERR! gyp ERR! stack at callback (C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\graceful-fs\polyfills.js:299:20) npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (node:fs:198:21) npm ERR! gyp ERR! System Windows_NT 10.0.22000 npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" npm ERR! gyp ERR! cwd C:\Users\User01\CodeUser01\microsoft-teams-apps-survey-main\node_modules\node-sass npm ERR! gyp ERR! node -v v16.13.0 npm ERR! gyp ERR! node-gyp -v v3.8.0 npm ERR! gyp ERR! not ok npm ERR! Build failed with error code: 1

Please advise.

MelinaDevAdmin commented 2 years ago

1 info using npm@8.1.4 2 info using node@v16.13.0 3 timing npm:load:whichnode Completed in 1ms 4 timing config:load:defaults Completed in 7ms 5 timing config:load:file:C:\Users\User01\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 7ms 6 timing config:load:builtin Completed in 7ms 7 timing config:load:cli Completed in 5ms 8 timing config:load:env Completed in 1ms 9 timing config:load:file:C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main.npmrc Completed in 1ms 10 timing config:load:project Completed in 4ms 11 timing config:load:file:C:\Users\User01.npmrc Completed in 1ms 12 timing config:load:user Completed in 1ms 13 timing config:load:file:C:\Users\User01\AppData\Roaming\npm\etc\npmrc Completed in 1ms 14 timing config:load:global Completed in 1ms 15 timing config:load:validate Completed in 1ms 16 timing config:load:credentials Completed in 3ms 17 timing config:load:setEnvs Completed in 3ms 18 timing config:load Completed in 34ms 19 timing npm:load:configload Completed in 34ms 20 timing npm:load:setTitle Completed in 1ms 21 timing npm:load:setupLog Completed in 1ms 22 timing config:load:flatten Completed in 10ms 23 timing npm:load:cleanupLog Completed in 9ms 24 timing npm:load:configScope Completed in 1ms 25 timing npm:load:projectScope Completed in 4ms 26 timing npm:load Completed in 65ms 27 timing arborist:ctor Completed in 2ms


3288 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\User01\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "i" 3289 verbose node v16.13.0 3290 verbose npm v8.1.4 3291 error code 1 3292 error path C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\node-sass 3293 error command failed 3294 error command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js 3295 error Building: C:\Program Files\nodejs\node.exe C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= 3296 error gyp info it worked if it ends with ok 3296 error gyp verb cli [ 3296 error gyp verb cli 'C:\Program Files\nodejs\node.exe', 3296 error gyp verb cli 'C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\node-gyp\bin\node-gyp.js', 3296 error gyp verb cli 'rebuild', 3296 error gyp verb cli '--verbose', 3296 error gyp verb cli '--libsass_ext=', 3296 error gyp verb cli '--libsass_cflags=', 3296 error gyp verb cli '--libsass_ldflags=', 3296 error gyp verb cli '--libsass_library=' 3296 error gyp verb cli ] 3296 error gyp info using node-gyp@3.8.0 3296 error gyp info using node@16.13.0 | win32 | x64 3296 error gyp verb command rebuild [] 3296 error gyp verb command clean [] 3296 error gyp verb clean removing "build" directory 3296 error gyp verb command configure [] 3296 error gyp verb check python checking for Python executable "python2" in the PATH 3296 error gyp verb which failed Error: not found: python2 3296 error gyp verb which failed at getNotFoundError (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:13:12) 3296 error gyp verb which failed at F (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:68:19) 3296 error gyp verb which failed at E (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:80:29) 3296 error gyp verb which failed at C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:89:16 3296 error gyp verb which failed at C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\isexe\index.js:42:5 3296 error gyp verb which failed at C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\isexe\windows.js:36:5 3296 error gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) 3296 error gyp verb which failed python2 Error: not found: python2 3296 error gyp verb which failed at getNotFoundError (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:13:12) 3296 error gyp verb which failed at F (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:68:19) 3296 error gyp verb which failed at E (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:80:29) 3296 error gyp verb which failed at C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:89:16 3296 error gyp verb which failed at C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\isexe\index.js:42:5 3296 error gyp verb which failed at C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\isexe\windows.js:36:5 3296 error gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) { 3296 error gyp verb which failed code: 'ENOENT' 3296 error gyp verb which failed } 3296 error gyp verb check python checking for Python executable "python" in the PATH 3296 error gyp verb which failed Error: not found: python 3296 error gyp verb which failed at getNotFoundError (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:13:12) 3296 error gyp verb which failed at F (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:68:19) 3296 error gyp verb which failed at E (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:80:29) 3296 error gyp verb which failed at C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:89:16 3296 error gyp verb which failed at C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\isexe\index.js:42:5 3296 error gyp verb which failed at C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\isexe\windows.js:36:5 3296 error gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) 3296 error gyp verb which failed python Error: not found: python 3296 error gyp verb which failed at getNotFoundError (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:13:12) 3296 error gyp verb which failed at F (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:68:19) 3296 error gyp verb which failed at E (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:80:29) 3296 error gyp verb which failed at C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\which\which.js:89:16 3296 error gyp verb which failed at C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\isexe\index.js:42:5 3296 error gyp verb which failed at C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\isexe\windows.js:36:5 3296 error gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) { 3296 error gyp verb which failed code: 'ENOENT' 3296 error gyp verb which failed } 3296 error gyp verb could not find "python". checking python launcher 3296 error gyp verb could not find "python". guessing location 3296 error gyp verb ensuring that file exists: C:\Python27\python.exe 3296 error gyp ERR! configure error 3296 error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 3296 error gyp ERR! stack at PythonFinder.failNoPython (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\node-gyp\lib\configure.js:484:19) 3296 error gyp ERR! stack at PythonFinder. (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\node-gyp\lib\configure.js:509:16) 3296 error gyp ERR! stack at callback (C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\graceful-fs\polyfills.js:299:20) 3296 error gyp ERR! stack at FSReqCallback.oncomplete (node:fs:198:21) 3296 error gyp ERR! System Windows_NT 10.0.22000 3296 error gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" 3296 error gyp ERR! cwd C:\Users\User01\CodeMoad\microsoft-teams-apps-survey-main\node_modules\node-sass 3296 error gyp ERR! node -v v16.13.0 3296 error gyp ERR! node-gyp -v v3.8.0 3296 error gyp ERR! not ok 3296 error Build failed with error code: 1 3297 verbose exit 1

MelinaDevAdmin commented 2 years ago

Any updates?

rozzamozza commented 2 years ago

Same error here. Trying to work out if we need python install, regenerate package-lock file from scratch.