Installing from git repo


#1

I’ve got Atom installed on my computer, I downloaded it from atom.io and I like it. I want to use it at the editor on the virtual machine that I’m giving to my students next semester.

I’m trying to get their VM to be completely set up via a shell script so that I can ruthlessly destroy they messes they’ve made and start again. Atom’s plugins via apm make that really easy - or at least in theory.

When I try to install it, it gives me this error:

Installing script dependencies
Installing apm
module.js:327
    throw err;
    ^

Error: Cannot find module 'node-gyp/bin/node-gyp'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.require.resolve (internal/module.js:16:19)
    at new Install (/home/ben/atom/apm/node_modules/atom-package-manager/lib/install.js:53:38)
    at Object.module.exports.run (/home/ben/atom/apm/node_modules/atom-package-manager/lib/apm-cli.js:227:18)
    at Object.<anonymous> (/home/ben/atom/apm/node_modules/atom-package-manager/lib/cli.js:8:7)
    at Object.<anonymous> (/home/ben/atom/apm/node_modules/atom-package-manager/lib/cli.js:12:4)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
child_process.js:488
    throw err;
    ^

Error: Command failed: /home/ben/atom/apm/node_modules/atom-package-manager/bin/apm --loglevel=error install
    at checkExecSyncError (child_process.js:465:13)
    at Object.execFileSync (child_process.js:485:13)
    at module.exports (/home/ben/atom/script/lib/install-atom-dependencies.js:15:16)
    at Object.<anonymous> (/home/ben/atom/script/bootstrap:28:1)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)

This is a subset of the bigger shell script (which is here) (Currently starting at line 78 in the big file.)

Does anyone have any idea what’s going on here?

It’s not this problem Apm install –check fails on Windows 8


#2

I’m not very pleased about it, but I managed to hack around the problem by:

wget -O atomdeb https://atom.io/download/deb
sudo dpkg --install atomdeb

I’d still like to know why the other way doesn’t work though!