Closed ArchangeGabriel closed 7 years ago
For whatever reason your npm i
isn't installing cpx
which it definitely should:
https://github.com/vector-im/riot-web/blob/master/package.json#L95
Hum, more generally it seems to be skipping the devDependencies
category. So I’ve removed the --production arg after reading that this was its effect (I think I add already tried that hence why I did not included it above, but apparently I didn’t save the file), and it worked. I’m just unsure whether system phantomjs was used or not, but that’s not a big matter.
Thanks for your help!
This is the only bug that I could find by "copy-res.js" so my advice should be related. In my case it was:
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/copy-res.js -w
I ran that command, node scripts/copy-res.js -w
, and it said: watch /home/rkfg/soft/svn-soft/riot-web/res/flags ENOSPC
which is very misleading because I have plenty of space on each drive and /tmp. It turned out it ran out of inotify watches. I have a lot of files in node_modules
, about 30k, and max watches is only 8192. So I ran sysctl fs.inotify.max_user_watches=65536
(add the setting to /etc/sysctl.conf or sysctl.d/some_local.conf for permanent effect) and it worked fine after that. Hope this will help someone.
Description
Steps to reproduce
Fails to build, log below.
First mentioned log:
Second one:
Please ask if you need any supplemental information, if I should try specific steps, etc.