electron-windows-notifications icon indicating copy to clipboard operation
electron-windows-notifications copied to clipboard

Can not install package

Open jchafin opened this issue 6 years ago • 10 comments

gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\Abyss Watcher\AppData\Local\Programs\Python\Python37-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Abyss Watcher\source\repos\TheWatcher\TheWatcher\node_modules\@nodert-win10-cu\windows.applicationmodel
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodert-win10-cu/[email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodert-win10-cu/[email protected] install 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!     C:\Users\Abyss Watcher\AppData\Roaming\npm-cache\_logs\2019-03-17T18_02_55_302Z-debug.log

jchafin avatar Mar 17 '19 18:03 jchafin

Same issue for me

Crewski avatar Mar 24 '19 22:03 Crewski

Same

eluchsinger avatar Apr 04 '19 18:04 eluchsinger

In my case it says that I have to set an Environmental Variable... but, after i set the variable, it still throw the same error 🤕😫

Un-knownCoder avatar Apr 20 '19 10:04 Un-knownCoder

Same 😰😭

GioPan04 avatar Apr 25 '19 21:04 GioPan04

Finally I found a solution... Well, I know that it doesn't fix the problem, but it just do the same thing... I'm talking about the npm module: node-notifier - https://www.npmjs.com/package/node-notifier
(and it works even in other OS)

P.S.: in Windows (under the notification body) It shows an app id (Snore Toast), but I don't know how to remove it...

Un-knownCoder avatar Apr 25 '19 22:04 Un-knownCoder

@Un-knownCoder Ok thanks. I will try it :smile: . To remove the id, I think we just need to run:

app.setAppUserModelId("")

GioPan04 avatar Apr 25 '19 22:04 GioPan04

Unfortunately that code string doesn't work... It's because the notificaton is called from an external executable with a different app id

Un-knownCoder avatar Apr 29 '19 11:04 Un-knownCoder

node-gyp does not work with Python 3, you need Python 2

Stanzilla avatar May 12 '19 13:05 Stanzilla

the same for me

CaiqueCassemiro avatar Jun 09 '19 05:06 CaiqueCassemiro

@geoctrl you'd have to post your errors

Stanzilla avatar Oct 16 '19 22:10 Stanzilla