我想在Ubuntu 16.04上安装Laravel Elixir。
我安装了NodeJS,Apache,PHP7.0 FPM,MySQL,Composer,NPM。所有这些都将完美运行。我可以拉起Laravel框架。
如果我尝试安装Laravel Elixir,我运行命令npm install --global gulp-cli
这很好,然后当我运行npm install
并收到一条被杀信息
root@dev:/var/www/html/bookkeeper# npm install
npm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
loadDep:isarray → addName ▀ ╢████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
Killed
我在Fresh Ubuntu上尝试了几次。我甚至尝试过14.04上的digitalocean NodeJS版本。我正在关注https://laravel.com/docs/5.2/elixir#installation
上的文档我错过了依赖关系吗?
答案 0 :(得分:1)
我期望你的Droplet用完RAM。解决此问题的免费方法是创建一些交换空间,并在内存耗尽时使用磁盘。否则使用更大的液滴。
// Create and enable 2GB swap space
sudo dd if=/dev/zero of=/var/swap1 bs=1G count=2
sudo chmod 600 /var/swap1
sudo mkswap /var/swap1
sudo swapon /var/swap1
// Make changes permanent (in vi/vim/nano, whatever)
sudo vi /etc/fstab
// Add the following line to the file and save
/var/swap1 none swap sw 0 0
然后你应该可以重新运行npm install