Errors when building atom on linux: missing javascript modules


#1

Hello

I am trying to build atom from source on my Ubuntu 14.04 64-bit laptop. I get the following error while trying to build:

Loading “less-lint-task.js” tasks…ERROR
>> Error: Cannot find module 'csslint’
Loading “lint-utils.js” tasks…ERROR
>> Error: Cannot find module 'underscore’
Loading “cson-task.js” tasks…ERROR
>> Error: Cannot find module ‘StringScanner’

Does anybody know why these modules are missing and how I can fix it? Any help is greatly appreciated


#2

The only issue I came when trying to compile Atom under Ubuntu 14.04 was the lack of a shared library (not listed at install requirements: libudev-dev). After doing the following steps works fine:

script/build
script/grunt mkdeb

To install libudev:

sudo apt-get install libudev-dev
sudo ln -s / usr/local/lib/libudev.1.so /usr/local/lib/libudev.0.so

I really don’t know what’s the matter with libudev, but it worked. (Seen at this issue)

Edit: have you tried to update your atom source? I’ve successfully built one more .deb today (v0.97.0-6fa6863)


#4

I had the same problem with StringScanner not found found.

Error: Cannot find module ‘StringScanner’

Adding StringScanner in package.json was not enough. I had to manually npm install StringScanner


#5

I think npm install (without further arguments) installs the dependencies mentioned in package.json.