hovancik / stretchly

The break time reminder app
https://hovancik.net/stretchly
BSD 2-Clause "Simplified" License
4.52k stars 436 forks source link

[Bug]: When try to run via the srouce code, using linux debian 11 and node version 16.17.1 it crashes and the error message is "Ann error ocured When trying to run Sretchly and it will now close." " #1274

Closed achz1989 closed 1 year ago

achz1989 commented 1 year ago

Version

Known issues

Existing issues

What operating system are you using?

Linux

Operating System Version

Debian 11

Reproduction steps

1. 2. 3. ... Reproduces how often: [What percentage of the time does it reproduce?]

Expected Behavior

When the choosing language dialogue appears, it is expected from the application to run without showing any error messages. Thanks ! Ahmadreza

Actual Behavior

It shows an error message once the language dialogue appears from the beginning.

Relevant log output

No response

Preferences

No response

Additional information

No response

Code of Conduct

hovancik commented 1 year ago

could you please show me how do you start the app? what output do you see?

achz1989 commented 1 year ago

Since I'm dual booting windows and Linux I tried the same procedure to run the code and got the same error on visual studio as well. Here is the procedure that I fallow: 0- I have cloned the project into visual studio. 1- I use git bash on windows, which is added properly into visual studio 2022. 2- I change the node version to 16.17.` $ nvm use 16 Now using node v16.17.1 (npm v8.15.0) 3- npm install and the result is: $ npm install

Stretchly@1.13.1 postinstall electron-builder install-app-deps

• electron-builder version=23.6.0 • loaded configuration file=package.json ("build" field) • installing production dependencies platform=win32 arch=x64 appDir=C:\Users\achit\Source\Repos\stretchly\app

Stretchly@1.13.1 prepare husky install

husky - Git hooks installed

up to date, audited 642 packages in 15s

136 packages are looking for funding run npm fund for details

14 vulnerabilities (4 moderate, 10 high)

To address issues that do not require attention, run: npm audit fix

To address all issues (including breaking changes), run: npm audit fix --force

Run npm audit for details.

4- npm start, and the same error messages appear one after another recursively. Below are the details;

$ npm start

Stretchly@1.13.1 start electron ./app

23:05:45.175 > Stretchly: initializing... 23:05:45.231 > Stretchly: loading preferences 23:05:45.281 > Stretchly: starting Idle time monitoring 23:05:45.286 > Stretchly: starting Do Not Disturb monitoring i18next: hasLoadedNamespace: i18next was not initialized undefined i18next::translator: key "miniBreakIdeas" for languages "en" won't get resolved as namespace "translation" was not yet loaded This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!! i18next::translator: missingKey en translation miniBreakIdeas miniBreakIdeas i18next::translator: missingKey undefined translation miniBreakIdeas.0.text miniBreakIdeas.0.text i18next::translator: missingKey undefined translation miniBreakIdeas.1.text miniBreakIdeas.1.text i18next::translator: missingKey undefined translation miniBreakIdeas.2.text miniBreakIdeas.2.text i18next::translator: missingKey undefined translation miniBreakIdeas.3.text miniBreakIdeas.3.text i18next::translator: missingKey undefined translation miniBreakIdeas.4.text miniBreakIdeas.4.text i18next::translator: missingKey undefined translation miniBreakIdeas.5.text miniBreakIdeas.5.text i18next::translator: missingKey undefined translation miniBreakIdeas.6.text miniBreakIdeas.6.text i18next::translator: missingKey undefined translation miniBreakIdeas.7.text miniBreakIdeas.7.text i18next::translator: missingKey undefined translation miniBreakIdeas.8.text miniBreakIdeas.8.text i18next::translator: missingKey undefined translation miniBreakIdeas.9.text miniBreakIdeas.9.text i18next::translator: missingKey undefined translation miniBreakIdeas.10.text miniBreakIdeas.10.text i18next::translator: missingKey undefined translation miniBreakIdeas.11.text miniBreakIdeas.11.text i18next::translator: missingKey undefined translation miniBreakIdeas.12.text miniBreakIdeas.12.text i18next::translator: missingKey undefined translation miniBreakIdeas.13.text miniBreakIdeas.13.text i18next::translator: missingKey en translation longBreakIdeas longBreakIdeas i18next::translator: missingKey undefined translation longBreakIdeas.0.title longBreakIdeas.0.title i18next::translator: missingKey undefined translation longBreakIdeas.0.text longBreakIdeas.0.text i18next::translator: missingKey undefined translation longBreakIdeas.1.title longBreakIdeas.1.title i18next::translator: missingKey undefined translation longBreakIdeas.1.text longBreakIdeas.1.text i18next::translator: missingKey undefined translation longBreakIdeas.2.title longBreakIdeas.2.title i18next::translator: missingKey undefined translation longBreakIdeas.2.text longBreakIdeas.2.text i18next::translator: missingKey undefined translation longBreakIdeas.3.title longBreakIdeas.3.title i18next::translator: missingKey undefined translation longBreakIdeas.3.text longBreakIdeas.3.text i18next::translator: missingKey undefined translation longBreakIdeas.4.title longBreakIdeas.4.title i18next::translator: missingKey undefined translation longBreakIdeas.4.text longBreakIdeas.4.text i18next::translator: missingKey undefined translation longBreakIdeas.5.title longBreakIdeas.5.title i18next::translator: missingKey undefined translation longBreakIdeas.5.text longBreakIdeas.5.text i18next::translator: missingKey undefined translation longBreakIdeas.6.title longBreakIdeas.6.title i18next::translator: missingKey undefined translation longBreakIdeas.6.text longBreakIdeas.6.text i18next::translator: missingKey undefined translation longBreakIdeas.7.title longBreakIdeas.7.title i18next::translator: missingKey undefined translation longBreakIdeas.7.text longBreakIdeas.7.text i18next::translator: missingKey undefined translation longBreakIdeas.8.title longBreakIdeas.8.title i18next::translator: missingKey undefined translation longBreakIdeas.8.text longBreakIdeas.8.text i18next::translator: missingKey undefined translation longBreakIdeas.9.title longBreakIdeas.9.title i18next::translator: missingKey undefined translation longBreakIdeas.9.text longBreakIdeas.9.text i18next::translator: missingKey undefined translation longBreakIdeas.10.title longBreakIdeas.10.title i18next::translator: missingKey undefined translation longBreakIdeas.10.text longBreakIdeas.10.text i18next::translator: missingKey undefined translation longBreakIdeas.11.title longBreakIdeas.11.title i18next::translator: missingKey undefined translation longBreakIdeas.11.text longBreakIdeas.11.text i18next::translator: missingKey undefined translation longBreakIdeas.12.title longBreakIdeas.12.title i18next::translator: missingKey undefined translation longBreakIdeas.12.text longBreakIdeas.12.text i18next::translator: missingKey undefined translation longBreakIdeas.13.title longBreakIdeas.13.title i18next::translator: missingKey undefined translation longBreakIdeas.13.text longBreakIdeas.13.text 23:05:45.623 > Stretchly: loading default break ideas i18next::backendConnector: loaded namespace translation for language en { main: { toolTipHeader: 'Stretchly - The break time reminder app', microbreakIn: "Mini Break in $t(utils.seconds, {'count': {{seconds}} })", breakIn: "Long Break in $t(utils.seconds, {'count': {{seconds}} })", resumingBreaks: 'Resuming breaks', downloadLatestVersion: 'Download latest version', toBreak: 'Long Break', toMicrobreak: 'Mini Break', skipToTheNext: 'Skip to the next', resume: 'Resume Breaks', pause: 'Pause Breaks', forHour: '1 hour', for2Hours: '2 hours', for5Hours: '5 hours', untilMorning: 'Until morning', indefinitely: 'Indefinitely', resetBreaks: 'Reset Breaks', quitStretchly: 'Quit Stretchly', restoreDefaults: 'Restore defaults', warning: 'This will restore app defaults and all your settings will be lost.', continue: 'Continue', cancel: 'Cancel', preferences: 'Preferences', contributorPreferences: 'Contributor Preferences', syncPreferences: 'Sync Preferences' }, break: { postpone: 'Postpone this break', skip: 'Skip this break', title: 'Time to take a break!' }, preferences: { title: 'Stretchly Preferences', nav: { settings: 'Settings', schedule: 'Schedule', theme: 'Theme', about: 'About', heart: 'Love Stretchly' }, settings: { openAtLogin: 'Start Stretchly automatically when logging in', showBreaksIn: 'Shows breaks in:', window: 'Window', fullscreen: 'Full screen', showIdeas: 'Show exercise tips during breaks', allScreens: 'Shows breaks on all monitors', monitorIdleTime: 'Monitor system idle time (breaks are paused if system is idle).', monitorDnd: 'Show breaks even in Do Not Disturb mode', language: 'Select language:', restoreDefaults: 'Restore defaults' }, schedule: { miniBreaks: 'Mini Breaks:', miniBreaksInfo: 'Mini Breaks are short breaks taken regularly to give you a chance to stretch and relax.', enableMiniBreaks: 'Enable Mini Breaks', breakFor: 'Break for:', every: 'Every:', showNotificationBeforeMiniBreak: 'Show notification before Mini Break starts', enablePostponeMini: 'Enable Postponement for Mini Break', longBreaks: 'Long Breaks:', longBreaksInfo: 'Long Breaks are taken less regularly, but are of greater duration, allowing you to take an extended break from your work.', enableLongBreaks: 'Enable Long Breaks', showNotificationBeforeLongBreak: 'Show notification before Long Break starts', enablePostponeLong: 'Enable Postponement for Long Break', strictMode: 'Strict Mode:', strictModeInfo: 'Strict Mode prevents you from skipping either Mini Breaks or Long Breaks and is designed to help discipline.', enableStrictMini: 'Enable Strict Mode for Mini Breaks', enableStrictLong: 'Enable Strict Mode for Long Breaks', cantDisableBoth: 'It is not possible to disable both types of breaks' }, theme: { appearance: 'Appearance:', greenClouds: 'Green clouds', autumnBeBlessed: 'Autumn be blessed', graphiteCrystal: 'Graphite crystal', coffeeKisses: 'Coffee kisses', morningSwim: 'Morning swim', transparentMode: 'Enable transparency', sounds: 'Sounds:', enableSounds: 'Enable sounds', crystalGlass: 'Crystal glass', windChime: 'Wind chime', ticToc: 'Tic toc', menubarIcon: 'Menubar icon:', colour: 'Colour', monochrome: 'Monochrome', invertedMonochrome: 'Inverted Monochrome', snowWhite: 'Snow white' }, about: { tagline: 'The break time reminder app', version: 'Version ', latestVersion: 'Latest version ', checkNewVersion: 'Automatically check for app updates', learnMore: 'To learn more about Stretchly features, view a tutorial, download the latest version or contact us for support, ', ourWebsite: 'visit our website', dot: '.', developedBy: 'Developed by', janH: 'Jan Hovancik', designedBy: 'Icon and UI design by Colin Shanley' }, heart: { loveStretchly: 'Love your Stretchly?', desc1: 'Taking regular breaks when using a computer is scientifically proven to be important for your physical and mental well-being.', desc2: 'Stretchly is free. But you can lend your support by donating and help us continue to improve Stretchly and release other free software.', becomePatron: 'Become a Patron', alreadyContributor: "I'm already a contributor", authenticateUsing: 'Authenticate using:', contributorPreferences: 'Contributor Preferences', syncPreferences: 'Sync Preferences' } }, contributorPreferences: { '0': 'First monitor', '1': 'Second monitor', '2': 'Third monitor', '3': 'Fourth monitor', '4': 'Fifth monitor', title: 'Contributor Preferences', notifications: 'Break notifications:', notificationsInfo: 'System notification shown before breaks to let you prepare for it.', beforeLongBreak: 'Long Break:', beforeMiniBreak: 'Mini Break:', newVersion: 'New version:', newVersionNotification: 'Notify when new version is available', customIdeas: 'Custom ideas:', customIdeasInfo: 'Allows you to use custom break ideas by editing configuration file. (For advanced users.)', useIdeasFromSettings: 'Use break ideas from configuration file', breakPostpone: 'Postponement of breaks:', breakPostponeInfo: 'If enabled in main Preferences, you can postpone breaks. Following settings allow you to specify when, for how long and how many times you can postpone a break.', miniBreaks: 'Mini Breaks:', postponableFor: 'Postponable for:', postponeFor: 'Postpone for:', maxPostpones: 'Max of postpones:', longBreaks: 'Long Breaks:', pauseUntilMoring: 'Pause until morning:', pauseUntil: 'Pause until:', pauseUntilMorningInfo: "Specify till what hour 'Pause until morning' should pause.", welcomeWindow: 'Welcome window:', showWelcomeWindow: 'Show Welcome window on next start', opacityTheme: 'Theme transparency:', opacityInfo: 'How solid should the break window be?', opacity: 'Opacity:', breakWindowSize: 'Break window size', breakWindowSizeInfo: 'What percentage of the screen should the break window hide?', breakWindowWidth: 'Width:', breakWindowHeight: 'Height:', sounds: 'Sounds:', volume: 'Volume:', miniBreakStartSound: 'Play end-of-break sound also at the start of Mini break', longBreakStartSound: 'Play end-of-break sound also at the start of Long break', naturalBreaks: 'Natural breaks:', naturalBreaksInfo: 'If monitoring of idle time is enabled in main Preferences, you can specify after what time the breaks should be paused.', pauseAfter: 'Pause after:', appearance: 'Appearance:', light: 'Light', dark: 'Dark', system: 'System', showBreaksAsRegularWindowsTitle: 'Act as regular window:', showBreaksAsRegularWindowsInfo: "When enabled, Break windows will become focusable, they won't be 'Always on top' anymore and they will also appear in the taskbar.", showBreaksAsRegularWindows: 'Show breaks as regular windows', screen: 'Monitor for Breaks:', screenInfo: 'When showing breaks on all monitors is disabled, you can choose which one you would like to show your Breaks on.', showOnMonitor: 'Show Breaks on', primary: 'Primary monitor', cursor: 'Follow cursor', timeToBreakInTray: 'Time to break', showTimeToBreakInTray: 'Show time to the next break in menubar icon', currentTimeInBreaks: 'Current time', showCurrentTimeInBreaks: 'Show current local time in break window' }, utils: { remaining: '{{count}} remaining', inAbout: 'in about {{count}}', none_one: '{{count}}', none_other: '{{count}}', percent_one: '{{count}} percent', percent_other: '{{count}} percent', oclock_one: "{{count}} o'clock", oclock_other: "{{count}} o'clock", seconds_one: '{{count}} second', seconds_other: '{{count}} seconds', minutes_one: '{{count}} minute', minutes_other: '{{count}} minutes', hours_one: '{{count}} hour', hours_other: '{{count}} hours' }, process: { newVersionAvailable: 'New version is available!' }, welcome: { title: 'Welcome to Stretchly', breakTimeReminderApp: 'The break time reminder app', viewTutorial: 'View Tutorial', openPreferences: 'Open Preferences', getStarted: 'Get Started' }, statusMessages: { paused: 'Paused', indefinitely: 'Indefinitely', dndMode: 'Do Not Disturb is on', appExclusion: 'App exclusion rule', nextLongBreak: 'Next Long Break', nextMiniBreak: 'Next Mini Break', afterMiniBreak_one: 'after {{count}} Mini Break', afterMiniBreak_other: 'after {{count}} Mini Breaks', resuming: 'Resuming' }, miniBreakIdeas: { aaa: { text: 'Go grab a glass of water.' }, aab: { text: 'Slowly look all the way left, then right.' }, aac: { text: 'Slowly look all the way up, then down.' }, aad: { text: 'Close your eyes and take few deep breaths.' }, aae: { text: 'Close your eyes and relax.' }, aaf: { text: 'Stretch your legs.' }, aag: { text: 'Stretch your arms.' }, aah: { text: 'Is your sitting posture correct?' }, aai: { text: 'Slowly turn head to side and hold for 10 seconds.' }, aaj: { text: 'Slowly tilt head to side and hold for 5-10 seconds.' }, aak: { text: 'Stand from your chair and stretch.' }, aal: { text: 'Refocus your eyes on an object at least 20 meters away.' }, aam: { text: 'Take a moment to think about something you appreciate.' }, aan: { text: 'Take a moment to smile at being alive.' }, aao: { text: 'A truly ergonomic workstation is one that you regularly push away from.' }, aap: { text: 'Close your eyes and count your breaths.' }, aaq: { text: 'Close your eyes and name the things you hear.' }, aar: { text: 'Place your fingertips on your shoulders. Roll your shoulders forward for 10 seconds, then backward.' }, aas: { text: 'Raise your right arm, stretch it over your head to the left, and hold for 10 seconds. Repeat on the other side.' }, aat: { text: 'With your right hand, grab each finger of your left hand in turn and squeeze. Repeat on the other side.' }, aau: { text: 'Stand up and do a lunge. Hold for 10 seconds, then do the other leg.' }, aav: { text: 'Close your eyes and simply notice whatever arises in current moment, without judgement.' }, aaw: { text: 'Focus every 20 minutes for 20 seconds on an object at 20 feet distance.' }, aax: { text: 'If you need help, ask for it.' }, aay: { text: 'Do one thing at a time.' }, aaz: { text: 'Is your attention spent wisely?' }, aba: { text: 'Change your sitting posture.' }, abb: { text: 'Expose your eyes to natural light.' }, abc: { text: 'With your eyes closed, slowly and gently raise your eyes to the ceiling and back down to the floor.' }, abd: { text: 'With your eyes closed, slowly and gently move your eyes to the left, then slowly to the right.' }, abe: { text: 'Shake your hands out to get some relief.' }, abf: { text: 'One at a time, touch the tip of each finger to the tip of your thumb so they make an O-shape.' }, abg: { text: "Make a fist and then slide your fingers up until they point toward the ceiling, like you're telling someone to stop." }, abh: { text: 'Make a fist and then fan your fingers out and stretch them as far as you can.' }, abi: { text: 'Sit tall, arms hanging at your sides, and slowly rotate neck in one direction in a large circle.' }, abj: { text: 'Stand tall and slowly tilt your head toward the shoulder using the same hand until you feel a stretch.' }, abk: { text: 'Stand tall with your arms by your side. Squeeze your shoulder blades together and hold.' }, abl: { text: 'Stand tall with your arms raised along your shoulders. Move hands slightly behind your back, hold for a second and return.' }, abm: { text: 'Sit on the edge of your chair, twist your torso to one side and hold for 10-15 seconds. Repeat on the other side.' }, abn: { text: 'Stand up and put one foot on a nearby object, like a chair or step stool. Keep your knee bent and hold for 10-15 seconds. Repeat with the other foot.' }, abo: { text: 'Stand with your feet shoulder-width apart, lower your body down as if you were sitting back into a chair, then stand back up. Repeat several times.' }, abp: { text: 'Stand with you back and hands on a wall, then slowly move your arms up and down as if you were making snow angels.' }, abq: { text: 'Stand facing a wall and place your hands on it, then do several push-ups.' }, abr: { text: 'Sit on the edge of your chair and extend one leg straight out in front of you, holding for 10-15 seconds. Repeat with the other leg.' }, abs: { text: 'Stand facing a wall, put one foot back and the other foot forward, then lean into the wall. Repeat with the other leg.' }, abt: { text: 'Hold one arm straight up, then use the other arm to gently push the elbow of the first arm towards your head. Hold for 10-15 seconds. Repeat with the other arm.' }, abu: { text: 'Tilt your head to one side, then to the other side, and then gently tilt it forward and backward.' }, abv: { text: 'Reach one arm across your chest, hold onto the elbow with the other hand, and gently pull it in towards your chest. Repeat with the other arm.' }, abw: { text: 'Stand up, put one foot on a nearby object, like a chair or step stool, and reach down to touch your toes. Repeat with the other leg.' }, abx: { text: 'Stand in a doorway and place one arm on each side of the doorway, then gently lean forward until you feel a stretch in your chest.' }, aby: { text: 'Sit on the edge of a chair or on the floor, and place the soles of your feet together, gently pressing down with your elbows to stretch your inner thighs.' } }, longBreakIdeas: { aaa: { title: 'Not alone', text: 'Do you find it hard to take a break alone? Try to do it with a co-worker. Aside from making it easier to stick to breaks, you will have a chance to get to know them better. Taking breaks together increases productivity.' }, aab: { title: 'Step away', text: 'Do you ever notice how your brain can figure things out by itself? All it takes is to step away from the computer and take a break to think about something totally unrelated.' }, aac: { title: 'Microbreaks', text: 'Rest is a key component in ensuring the performance of the musculoskeletal system. Frequent breaks can decrease the duration of a task and help lower the exposure to ergonomic injury risk.' }, aad: { title: 'Meditation', text: 'Research studies suggest that mindfulness-based exercises help decrease anxiety, depression, stress, and pain, and help improve general health, mental health, and quality of life. Not sure how to start? There are numerous apps to help you out.' }, aae: { title: 'Blink', text: 'Looking at screens for a long time causes you to blink less, thus exposing your eyes to the air. Blink rapidly for a few seconds to refresh the tear film and clear dust from the eye surface.' }, aaf: { title: 'Ergonomics', text: 'Improper height and angle of the keyboard, mouse, monitor or working surface can cause health problems. Take some time to read about desk ergonomics.' }, aag: { title: 'Move', text: 'There are a lot of ways you can exercise within your office. Try marching in place or doing desk push-ups.' }, aah: { title: 'Change', text: 'Do you have a stability ball or standing work desk? Consider replacing your desk chair with them for a while.' }, aai: { title: 'Notice', text: 'Are you daydreaming or having trouble focusing? It is a sign that you need to take a break.' }, aaj: { title: 'Tech', text: 'How about taking a no-tech walk?' }, aak: { title: 'Metabolism', text: 'Emerging research shows that sitting for long periods of time contributes to risk of metabolic syndrome, heart attack and stroke risk and overall death risk, among others. Taking regular walking breaks can help your circulation, working to counteract some of those problems.' }, aal: { title: 'Active Meetings', text: 'How about moving meetings from the conference room to the concourse? Walking not only burns calories but it may even foster a sense of collaboration.' }, aam: { title: 'Fruit', text: 'Take your time and eat some fruit. Slowly. Notice the flavor, the texture, the freshness.' }, aan: { title: 'Bathrooms', text: 'Walk to the farthest bathroom in the worksite facility when going to the restroom.' }, aao: { title: 'Coffee break', text: 'Going on coffee break? Consider doing a 5-minute walk every time you go for one.' }, aap: { title: 'Colleagues', text: 'Do not email or message office colleagues, walk to their desks to communicate with them.' }, aaq: { title: 'Learning', text: 'In a study of healthy volunteers, NIH researchers found that taking short breaks, early and often, may help our brains learn new skills.' }, aar: { title: 'Exercise', text: 'Evidence suggests small amounts of regular exercise can bring dramatic health benefits, including measurably reducing stress.' }, aas: { title: 'Repeat', text: 'Have you found your stretch-ly-routine? Do not forget to repeat it for more than once to better fight effects of prolonged sitting.' }, aat: { title: 'Wrist and forearm', text: 'Extend your arms with the palms facing towards you, then slowly rotate the hands four times clockwise, then four times counter-clockwise.' }, aau: { title: 'Back stretching', text: 'Join your hands behind your head, then lift them together up above your head ending with your palms facing upward.' }, aav: { title: 'Mobilize', text: 'For every thirty minutes of stagnation, you should have at least one minute of stimulation.' }, aaw: { title: '7 Minute Workout', text: 'This workout packs in a full-body exercise routine in a fraction of the time. But as with any exercise, be careful. There are numerous apps to get you started.' }, aax: { title: 'Pulse', text: 'Raise your pulse rate to 120 beats per minute for 20 straight minutes four or five times a week doing anything you enjoy. Regularly raising your heart rate results in improved cardiovascular health.' }, aay: { title: 'Take the stairs', text: 'Studies have shown that stair climbing, which is considered vigorous-intensity physical activity, burns more calories per minute than jogging.' }, aaz: { title: 'Make art', text: 'Art therapy is known to have great mental health benefits, especially when it comes to stress management. How about writing a quick poem, taking a picture or painting something small?' }, aba: { title: 'Declutter', text: 'A clean space helps your focus at work and is often linked to positive emotions like happiness.' }, abb: { title: 'Lunch outside', text: 'Nature is linked to positive emotions and decreased stress and anxiety. Whenever possible, try to take your daily lunch break outside, surrounded by some greenery.' }, abc: { title: 'Public transport', text: 'If you use public transport regularly, you can stand instead of sitting. If it is possible, try to replace as many of your daily trips as possible with walking or cycling.' }, abd: { title: 'Yawning', text: 'Yawning can be really helpful, as it produces tears to help moisten and lubricate the eyes.' }, abe: { title: 'Focus change', text: 'Hold one finger close to the eye and focus on it. Slowly move the finger away, focus far into the distance and then back to the finger. Bring the finger back and focus on something far away.' }, abf: { title: 'Palming', text: 'While seated, brace elbows on the desk and close to the desk edge. Let your weight fall forward and cup hands over eyes. Close your eyes and inhale slowly through nose and hold for few seconds. Continue deep breathing.' }, abg: { title: 'Hand squeezes', text: 'Squeeze a pair of balled-up socks or a soft rubber ball, hold for 5 seconds. Repeat whole process a few times.' }, abh: { title: 'Slow Breathing', text: 'Emerging research suggests potential for use of controlled slow breathing techniques as a means of optimising physiological parameters that appear to be associated with health and longevity.' }, abi: { title: 'Imaginative visualization', text: 'Close your eyes and imagine yourself in a peaceful and calming place, such as a beach or a forest, focusing on the sights, sounds, and sensations of that environment.' } } } 23:05:45.834 > Stretchly: loading default break ideas i18next: languageChanged en i18next: initialized { debug: true, initImmediate: true, ns: [ 'translation' ], defaultNS: [ 'translation' ], fallbackLng: [ 'en' ], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: 'all', preload: false, simplifyPluralSuffix: true, keySeparator: '.', nsSeparator: ':', pluralSeparator: '', contextSeparator: '', partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: 'fallback', saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: true, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: [Function: handle], interpolation: { escapeValue: true, format: [Function: bound format], prefix: '{{', suffix: '}}', formatSeparator: ',', unescapePrefix: '-', nestingPrefix: '$t(', nestingSuffix: ')', nestingOptionsSeparator: ',', maxReplaces: 1000, skipOnVariables: true }, lng: 'en', backend: { loadPath: 'C:\Users\achit\Source\Repos\stretchly\app\locales\{{lng}}.json', jsonIndent: 2, addPath: '/locales/{{lng}}/{{ns}}.missing.json', ident: 2, parse: [Function: parse], stringify: [Function: stringify] }, ignoreJSONStructure: true } 23:05:46.334 > Error: Could not locate the bindings file. Tried: → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\Debug\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\Release\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\out\Debug\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\Debug\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\out\Release\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\Release\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\default\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\compiled\16.17.1\win32\x64\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\addon-build\release\install-root\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\addon-build\debug\install-root\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\addon-build\default\install-root\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\lib\binding\node-v110-win32-x64\notificationstate.node at bindings (C:\Users\achit\Source\Repos\stretchly\app\node_modules\bindings\bindings.js:126:9) at Object. (C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\lib\index.js:1:65) at Module._compile (node:internal/modules/cjs/loader:1141:14) at Module._extensions..js (node:internal/modules/cjs/loader:1196:10) at Module.load (node:internal/modules/cjs/loader:1011:32) at Module._load (node:internal/modules/cjs/loader:846:12) at f._load (node:electron/js2c/asar_bundle:2:13330) at Module.require (node:internal/modules/cjs/loader:1035:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\lib\index.js:3:36) 23:05:47.309 > Error: Could not locate the bindings file. Tried: → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\Debug\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\Release\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\out\Debug\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\Debug\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\out\Release\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\Release\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\default\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\compiled\16.17.1\win32\x64\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\addon-build\release\install-root\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\addon-build\debug\install-root\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\addon-build\default\install-root\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\lib\binding\node-v110-win32-x64\notificationstate.node at bindings (C:\Users\achit\Source\Repos\stretchly\app\node_modules\bindings\bindings.js:126:9) at Object. (C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\lib\index.js:1:65) at Module._compile (node:internal/modules/cjs/loader:1141:14) at Module._extensions..js (node:internal/modules/cjs/loader:1196:10) at Module.load (node:internal/modules/cjs/loader:1011:32) at Module._load (node:internal/modules/cjs/loader:846:12) at f._load (node:electron/js2c/asar_bundle:2:13330) at Module.require (node:internal/modules/cjs/loader:1035:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\lib\index.js:3:36) 23:05:48.326 > Error: Could not locate the bindings file. Tried: → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\Debug\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\Release\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\out\Debug\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\Debug\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\out\Release\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\Release\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\default\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\compiled\16.17.1\win32\x64\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\addon-build\release\install-root\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\addon-build\debug\install-root\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\addon-build\default\install-root\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\lib\binding\node-v110-win32-x64\notificationstate.node at bindings (C:\Users\achit\Source\Repos\stretchly\app\node_modules\bindings\bindings.js:126:9) at Object. (C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\lib\index.js:1:65) at Module._compile (node:internal/modules/cjs/loader:1141:14) at Module._extensions..js (node:internal/modules/cjs/loader:1196:10) at Module.load (node:internal/modules/cjs/loader:1011:32) at Module._load (node:internal/modules/cjs/loader:846:12) at f._load (node:electron/js2c/asar_bundle:2:13330) at Module.require (node:internal/modules/cjs/loader:1035:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\lib\index.js:3:36) 23:05:48.609 > Stretchly: checking for new version (local: v1.13.1, remote: 1.13.1) 23:05:49.333 > Error: Could not locate the bindings file. Tried: → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\Debug\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\Release\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\out\Debug\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\Debug\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\out\Release\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\Release\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\build\default\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\compiled\16.17.1\win32\x64\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\addon-build\release\install-root\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\addon-build\debug\install-root\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\addon-build\default\install-root\notificationstate.node → C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\lib\binding\node-v110-win32-x64\notificationstate.node at bindings (C:\Users\achit\Source\Repos\stretchly\app\node_modules\bindings\bindings.js:126:9) at Object. (C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\node_modules\windows-notification-state\lib\index.js:1:65) at Module._compile (node:internal/modules/cjs/loader:1141:14) at Module._extensions..js (node:internal/modules/cjs/loader:1196:10) at Module.load (node:internal/modules/cjs/loader:1011:32) at Module._load (node:internal/modules/cjs/loader:846:12) at f._load (node:electron/js2c/asar_bundle:2:13330) at Module.require (node:internal/modules/cjs/loader:1035:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (C:\Users\achit\Source\Repos\stretchly\app\node_modules\@meetfranz\electron-notification-state\lib\index.js:3:36)

hovancik commented 1 year ago

And this error is on Windows of Linux? On Windows, you need to install node with tools. I don't remember exactly but there is some checkbox during node install.

I would recommend using Linux, for me it was always easier to setup.

achz1989 commented 1 year ago

This error above was shown on Windows, on Visual studio 2022(Git Bash attached instead of console as a terminal), But on either OS I saw the same warning message. Could you tell me about the checkbox for node installation please? I'd really appreciate, if you wrote a more precise instruction for that at your convenience. Anyway, undoubtedly you did a great job by creating this helpful app, and you made the world a better place Hovancik.

achz1989 commented 1 year ago

On Debian Linux:

npm WARN deprecated asar@3.2.0: Please use @electron/asar moving forward. There is no API change, just a package name change npm WARN deprecated electron-osx-sign@0.6.0: Please use @electron/osx-sign moving forward. Be aware the API is slightly different npm ERR! code 1 npm ERR! path /home/achz/Apps/stretchly/node_modules/windows-focus-assist npm ERR! command failed npm ERR! command sh /tmp/install-f50c9df8.sh npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.0.0 npm ERR! gyp info using node@16.17.1 | linux | x64 npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/achz/Apps/stretchly/node_modules/windows-focus-assist/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/achz/.cache/node-gyp/16.17.1/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/home/achz/.cache/node-gyp/16.17.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/achz/.cache/node-gyp/16.17.1/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/achz/Apps/stretchly/node_modules/windows-focus-assist', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: not found: make npm ERR! gyp ERR! stack at getNotFoundError (/home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/which/which.js:10:17) npm ERR! gyp ERR! stack at /home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/which/which.js:57:18 npm ERR! gyp ERR! stack at new Promise () npm ERR! gyp ERR! stack at step (/home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/which/which.js:54:21) npm ERR! gyp ERR! stack at /home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/which/which.js:71:22 npm ERR! gyp ERR! stack at new Promise () npm ERR! gyp ERR! stack at subStep (/home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/which/which.js:69:33) npm ERR! gyp ERR! stack at /home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/which/which.js:80:22 npm ERR! gyp ERR! stack at /home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/isexe/index.js:42:5 npm ERR! gyp ERR! stack at /home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 npm ERR! gyp ERR! System Linux 5.10.0-21-amd64 npm ERR! gyp ERR! command "/home/achz/.nvm/versions/node/v16.17.1/bin/node" "/home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /home/achz/Apps/stretchly/node_modules/windows-focus-assist npm ERR! gyp ERR! node -v v16.17.1 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: npm ERR! /home/achz/.npm/_logs/2023-02-23T10_49_44_568Z-debug-0.log

hovancik commented 1 year ago

Hi, on Windows there should be something like this:

image

You need to check that box.

Regarding Linux:

stack Error: not found: make

You need to install make

achz1989 commented 1 year ago

Hello Hovancik, I have had make installed before. this did not solve my problem.

make -v GNU Make 4.3 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

achz1989 commented 1 year ago

Stretchly@1.13.1 postinstall electron-builder install-app-deps

• electron-builder version=23.6.0 • loaded configuration file=package.json ("build" field) • installing production dependencies platform=linux arch=x64 appDir=/home/achz/Apps/stretchly/app ⨯ /home/achz/.nvm/versions/node/v16.17.1/bin/node process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE Exit code: 1 Error output: npm WARN config production Use --omit=dev instead. npm ERR! code 1 npm ERR! path /home/achz/Apps/stretchly/app/node_modules/windows-focus-assist npm ERR! command failed npm ERR! command sh /tmp/install-64af08a0.sh npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.0.0 npm ERR! gyp info using node@16.17.1 | linux | x64 npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3" npm ERR! gyp http GET https://electronjs.org/headers/v22.2.0/node-v22.2.0-headers.tar.gz npm ERR! gyp WARN install got an error, rolling back install npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack FetchError: request to https://www.electronjs.org/headers/v22.2.0/node-v22.2.0-headers.tar.gz failed, reason: read ECONNRESET npm ERR! gyp ERR! stack at ClientRequest. (/home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14) npm ERR! gyp ERR! stack at ClientRequest.emit (node:events:513:28) npm ERR! gyp ERR! stack at TLSSocket.socketErrorListener (node:_http_client:481:9) npm ERR! gyp ERR! stack at TLSSocket.emit (node:events:525:35) npm ERR! gyp ERR! stack at emitErrorNT (node:internal/streams/destroy:157:8) npm ERR! gyp ERR! stack at emitErrorCloseNT (node:internal/streams/destroy:122:3) npm ERR! gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21) npm ERR! gyp ERR! System Linux 5.10.0-21-amd64 npm ERR! gyp ERR! command "/home/achz/.nvm/versions/node/v16.17.1/bin/node" "/home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /home/achz/Apps/stretchly/app/node_modules/windows-focus-assist npm ERR! gyp ERR! node -v v16.17.1 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: npm ERR! /home/achz/.npm/_logs/2023-02-25T06_29_18_802Z-debug-0.log failedTask=installAppDeps stackTrace=Error: /home/achz/.nvm/versions/node/v16.17.1/bin/node process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE Exit code: 1 Error output: npm WARN config production Use --omit=dev instead. npm ERR! code 1 npm ERR! path /home/achz/Apps/stretchly/app/node_modules/windows-focus-assist npm ERR! command failed npm ERR! command sh /tmp/install-64af08a0.sh npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.0.0 npm ERR! gyp info using node@16.17.1 | linux | x64 npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3" npm ERR! gyp http GET https://electronjs.org/headers/v22.2.0/node-v22.2.0-headers.tar.gz npm ERR! gyp WARN install got an error, rolling back install npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack FetchError: request to https://www.electronjs.org/headers/v22.2.0/node-v22.2.0-headers.tar.gz failed, reason: read ECONNRESET npm ERR! gyp ERR! stack at ClientRequest. (/home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14) npm ERR! gyp ERR! stack at ClientRequest.emit (node:events:513:28) npm ERR! gyp ERR! stack at TLSSocket.socketErrorListener (node:_http_client:481:9) npm ERR! gyp ERR! stack at TLSSocket.emit (node:events:525:35) npm ERR! gyp ERR! stack at emitErrorNT (node:internal/streams/destroy:157:8) npm ERR! gyp ERR! stack at emitErrorCloseNT (node:internal/streams/destroy:122:3) npm ERR! gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21) npm ERR! gyp ERR! System Linux 5.10.0-21-amd64 npm ERR! gyp ERR! command "/home/achz/.nvm/versions/node/v16.17.1/bin/node" "/home/achz/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /home/achz/Apps/stretchly/app/node_modules/windows-focus-assist npm ERR! gyp ERR! node -v v16.17.1 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not ok

hovancik commented 1 year ago

looks like dependencies could not be downloaded.

try rm -rf node_modules && rm -rf app/node_modules to remove node modules folders then npm i -g npm to update npm and npm i again

achz1989 commented 1 year ago

Thanks man. You are a life savor. It works. Also I did

yarn add electron-builder --dev