andyrichardson / atom-updater-linux

Be notified of updates to Atom and install without leaving the editor.
https://atom.io/packages/atom-updater-linux
MIT License
5 stars 1 forks source link

Error while installing #9

Closed route closed 6 years ago

route commented 6 years ago

Issue Description

I have troubles installing this package. Do I have something not installed or something is missing in the config?

Steps to reproduce

apm install atom-updater-linux

Expected result

Success when installed

Actual result

> atom-updater-linux@1.1.2 postinstall /tmp/apm-install-dir-11849-22221-1mgxefs.jyt3i35wmi/node_modules/atom-updater-linux
> tsc

node_modules/@types/node/index.d.ts(6202,55): error TS2304: Cannot find name 'Map'.
node_modules/@types/node/index.d.ts(6209,55): error TS2304: Cannot find name 'Set'.
node_modules/@types/node/index.d.ts(6213,64): error TS2304: Cannot find name 'Symbol'.
node_modules/@types/node/index.d.ts(6219,59): error TS2304: Cannot find name 'WeakMap'.
node_modules/@types/node/index.d.ts(6220,59): error TS2304: Cannot find name 'WeakSet'.
/tmp/apm-install-dir-11849-22221-1mgxefs.jyt3i35wmi
└── (empty)

npm WARN deprecated @types/es6-promise@3.3.0: This is a stub types definition for es6-promise (https://github.com/jakearchibald/ES6-Promise). es6-promise provides its own type definitions, so you don't need @types/es6-promise installed!
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.3 (node_modules/atom-updater-linux/node_modules/sane/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/atom-updater-linux/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-11849-22221-1mgxefs.jyt3i35wmi/package.json'
npm WARN apm-install-dir-11849-22221-1mgxefs.jyt3i35wmi No description
npm WARN apm-install-dir-11849-22221-1mgxefs.jyt3i35wmi No repository field.
npm WARN apm-install-dir-11849-22221-1mgxefs.jyt3i35wmi No README data
npm WARN apm-install-dir-11849-22221-1mgxefs.jyt3i35wmi No license field.
npm ERR! Linux 4.13.0-39-generic
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/route/.atom/.apm/.apmrc" "--userconfig" "/home/route/.atom/.apmrc" "install" "/tmp/d-11849-22221-wulbt3.j2aj68ncdi/package.tgz" "--runtime=electron" "--target=1.6.15" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! atom-updater-linux@1.1.2 postinstall: `tsc`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the atom-updater-linux@1.1.2 postinstall script 'tsc'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the atom-updater-linux package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     tsc
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs atom-updater-linux
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls atom-updater-linux
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-11849-22221-1mgxefs.jyt3i35wmi/npm-debug.log
npm ERR! code 1

Additional info

Atom version: [v1.26.1]

Package version: [v1.1.2]

Operating System: [Pop!_OS 17.10 (Artful Aardvark)]

rahidelvi commented 6 years ago

I'm seeing the same issue on a new Ubuntu 18.04 install.

andyrichardson commented 6 years ago

@route can you please use the issue template provided - it will make things much easier to resolve.

andyrichardson commented 6 years ago

There is a new release v1.2.2 which completely removes the typescript build process and should resolve the issue.

Thanks for reporting and let me know if any other issues come up :blush: