-
Notifications
You must be signed in to change notification settings - Fork 28
How to build (macOS)
- osx 10.12 or higher version is tested.
- node version v6.7.0
- npm version 3.10.3
- nvm version 0.33.1
We recommend using nvm to manage node version.
npm install
cd script && npm install && cd ..
mkdir apm/node_modules
cd apm/node_modules && git clone https://github.com/TheraPackages/apm.git atom-package-manager && cd atom-package-manager && npm install
script/build --install
In china you can use cnpm install && script/build --install
instead
if there is still error, plz check our travis-ci config and travis_before_script.
1 install https://atom.io/download/electron/v1.3.13/iojs-v1.3.13.tar.gz failed
iojs-v1.3.13.tar.gz stores on amazon S3. Use a vpn to download it.
If you use shadowsocks you can follow this to setup your terminal.
npm native module version mismatch with electron. Rebuild it with npm rebuild --runtime=electron --target=1.3.15 --disturl=https://atom.io/download/atom-shell --abi=49
and build again.
The target version matches the version of electron, which is defined in project root package.json
file.
Sometimes apm does not have the permission to execute. chmod +x apm/node_modules/atom-package-manager/bin
can fix this issue.
Thera opens lots of files when building, sometimes exceed the limit of system max files. We can change the system limit.
Run these in terminal:
echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf sudo sysctl -w kern.maxfiles=65536 sudo sysctl -w kern.maxfilesperproc=65536 ulimit -n 65536 65536
Add this to ~/.bash_profileulimit -n 65536 65536
Source:
https://github.com/karma-runner/karma/issues/1979#issuecomment-217994084