Install yarn (version 1.0.2). Execute: yarn --help It shows: module.js:473 throw err; ^ Error: Cannot find module '/usr/local/etc/nginx/lib/node_modules/yarn/bin/yarn.js' at Function.Module._resolveFilename (module.js:527:15) at Function.Module._load (module.js:453:25) at Function.Module.runMain (module.js:665:10) at startup (bootstrap_node.js:187:16) at bootstrap_node.js:607:3
A commit references this bug: Author: pizzamig Date: Sat Sep 30 11:23:12 UTC 2017 New revision: 450977 URL: https://svnweb.freebsd.org/changeset/ports/450977 Log: www/yarn: update to 1.1.0 and fix the yarn script Re-enabling the readlink -f option on FreeBSD Update to version 1.1.0 PR: 222696 Approved by: olivier (mentor) Differential Revision: https://reviews.freebsd.org/D12542 Changes: head/www/yarn/Makefile head/www/yarn/distinfo
Thanks, I tested the new version 1.1.0_1 and it fixes the problem. Nice trick using @${REINPLACE_CMD} to avoid a patch file ;)