webkom / brus-frontend

https://brus-frontend.webkom.now.sh
1 stars 0 forks source link

yarn build throws `sed: 1` error #1

Closed SmithPeder closed 5 years ago

SmithPeder commented 5 years ago

Hardware Overview: Model Name: MacBook Pro Model Identifier: MacBookPro15,1 Processor Name: Intel Core i7 Processor Speed: 2,6 GHz Number of Processors: 1 Total Number of Cores: 6 L2 Cache (per Core): 256 KB L3 Cache: 9 MB Hyper-Threading Technology: Enabled Memory: 32 GB OS version: macOS Mojave Version 10.14.5

Browser version Google Chrome Version 76.0.3809.100 (Official Build) (64-bit)

yarn version

$ yarn version
yarn version v1.17.3
info Current version: 1.0.0

yarn versions

$ yarn versions
{
  yarn: '1.17.3',
  brus: '1.0.0',
  node: '12.9.0',
  v8: '7.6.303.29-node.15',
  uv: '1.31.0',
  zlib: '1.2.11',
  brotli: '1.0.7',
  ares: '1.15.0',
  modules: '72',
  nghttp2: '1.39.2',
  napi: '4',
  llhttp: '1.1.4',
  http_parser: '2.8.0',
  openssl: '1.1.1c',
  cldr: '35.1',
  icu: '64.2',
  tz: '2019a',
  unicode: '12.1'
}

Installed packages

$ pkgutil --pkgs                                                                                            
com.apple.pkg.GatekeeperConfigData.16U1868
com.apple.pkg.DevSDK_macOS1013_Public
com.apple.pkg.GatekeeperConfigData.16U1672
com.apple.pkg.GatekeeperConfigData.16U1699
com.apple.update.fullbundleupdate.18D109
com.apple.pkg.macOSBrain
com.apple.pkg.MAContent10_AssetPack_0637_AppleLoopsDrummerKyle
com.apple.pkg.GatekeeperConfigData.16U1738
com.apple.pkg.MAContent10_AssetPack_0593_DrummerSoCalGBLogic
com.apple.update.fullbundleupdate.18F132
com.apple.pkg.CLTools_Executables
com.apple.pkg.TCCConfigData.16U1777
com.apple.pkg.MAContent10_AssetPack_0317_AppleLoopsModernRnB1
com.apple.pkg.MAContent10_AssetPack_0537_DrummerShaker
com.apple.pkg.MAContent10_AssetPack_0482_EXS_OrchWoodwindAltoSax
com.apple.pkg.DevSDK
com.apple.pkg.IncompatibleAppList.10_14.16U1638
com.apple.pkg.GatekeeperConfigData.16U1845
com.apple.pkg.GatekeeperConfigData.16U1662
com.apple.pkg.EmbeddedOSFirmware
com.apple.pkg.MAContent10_AssetPack_0048_AlchemyPadsDigitalHolyGhost
com.apple.pkg.CLTools_SDK_macOSSDK
com.apple.pkg.XProtectPlistConfigData.16U4051
com.apple.pkg.MAContent10_AssetPack_0539_DrummerTambourine
com.apple.update.fullbundleupdate.18B75
com.apple.pkg.MAContent10_AssetPack_0323_AppleLoopsVintageBreaks
com.apple.pkg.MAContent10_AssetPack_0487_EXS_OrchWoodwindFluteSolo
com.apple.pkg.MRTConfigData_10_14.16U4078
com.apple.pkg.XProtectPlistConfigData.16U4052
com.apple.pkg.MAContent10_AssetPack_0484_EXS_OrchWoodwindClarinetSolo
com.apple.pkg.GatekeeperConfigData.16U1809
com.apple.pkg.MRTConfigData_10_14.16U4079
com.apple.pkg.MRTConfigData.16U4048
com.apple.pkg.MAContent10_AssetPack_0310_UB_DrumMachineDesignerGB
com.apple.pkg.CompatibilityNotificationData_10_14.16U1819
com.apple.pkg.GatekeeperConfigData.16U1602
com.apple.pkg.MobileDevice
com.apple.pkg.MAContent10_AssetPack_0316_AppleLoopsDubstep1
com.apple.pkg.macOS_SDK_headers_for_macOS_10.14
com.apple.pkg.GatekeeperConfigData.16U1824
com.apple.pkg.MAContent10_AssetPack_0491_EXS_OrchBrass
com.apple.pkg.CompatibilityNotificationData_10_14.16U1763
com.apple.pkg.iTunesX
com.apple.pkg.DevSDK_OSX109
com.apple.pkg.MAContent10_AssetPack_0560_LTPBasicPiano1
com.apple.pkg.XProtectPlistConfigData.16U4040
com.apple.pkg.GatekeeperConfigData.16U1826
com.apple.pkg.CoreADI
com.apple.pkg.MAContent10_AssetPack_0315_AppleLoopsElectroHouse1
com.apple.pkg.MAContent10_AssetPack_0322_AppleLoopsDiscoFunk1
com.apple.pkg.MAContent10_AssetPack_0597_LTPChordTrainer
com.apple.pkg.update.os.10.14.3Supplemental.18D109
com.apple.pkg.update.os.10.14.2.18C54
com.apple.pkg.GatekeeperConfigData.16U1817
com.apple.pkg.GatekeeperConfigData.16U1803
com.apple.pkg.MAContent10_AssetPack_0540_PlugInSettingsGB
com.apple.pkg.MAContent10_AssetPack_0375_EXS_GuitarsVintageStrat
com.apple.pkg.MobileDeviceSU.1220A22
com.apple.pkg.TCCConfigData.16U1640
com.apple.pkg.MRTConfigData.16U4054
com.apple.pkg.MRTConfigData_10_14.16U4071
com.apple.pkg.CLTools_SDK_macOS1013
com.apple.pkg.MAContent10_AssetPack_0615_GBLogicAlchemyEssentials
com.apple.pkg.MAContent10_AssetPack_0509_EXS_StringsEnsemble
com.apple.pkg.MAContent10_AssetPack_0324_AppleLoopsBluesGarage
com.apple.pkg.MAContent10_AssetPack_0314_AppleLoopsHipHop1
com.apple.pkg.SecureBoot
com.apple.pkg.MAContent10_AssetPack_0541_PlugInSettingsGBLogic
com.apple.pkg.MAContent10_AssetPack_0325_AppleLoopsGarageBand1
com.apple.update.fullbundleupdate.18F203
com.apple.pkg.update.os.10.14.3.18D42
com.apple.pkg.MAContent10_AssetPack_0371_EXS_GuitarsAcoustic
com.apple.pkg.MRTConfigData_10_14.16U4075
com.apple.pkg.MAContent10_AssetPack_0312_UB_UltrabeatKitsGBLogic
com.apple.pkg.MRTConfigData.16U4050
com.apple.pkg.MAContent10_AssetPack_0646_AppleLoopsDrummerElectronic
com.apple.pkg.MRTConfigData.16U4046
com.apple.pkg.MAContent10_AssetPack_0598_LTPBasicGuitar1
com.apple.update.fullbundleupdate.18D42
com.apple.pkg.GatekeeperConfigData.16U1634
com.apple.pkg.CLTools_SDK_macOS1014
com.apple.pkg.update.os.10.14.5.18F132
com.apple.pkg.MRTConfigData.16U4053
com.apple.pkg.GatekeeperConfigData.16U1782
com.apple.pkg.update.os.10.14.5Supplemental.18F203
com.apple.pkg.MAContent10_AssetPack_0354_EXS_PianoSteinway
com.apple.pkg.MAContent10_AssetPack_0321_AppleLoopsIndieDisco
com.apple.pkg.MAContent10_AssetPack_0538_DrummerSticks
com.apple.pkg.MAContent10_AssetPack_0358_EXS_BassElectricFingerStyle
com.apple.pkg.IncompatibleAppList.10_14.16U1623
com.apple.pkg.InstallAssistantAuto
com.apple.pkg.GatekeeperConfigData.16U1679
com.apple.update.fullbundleupdate.18C54
com.apple.pkg.update.os.10.14.1.18B75
com.apple.pkg.iTunesAccess
com.apple.pkg.XProtectPlistConfigData.16U4039
com.apple.pkg.MAContent10_AssetPack_0554_AppleLoopsDiscoFunk2
com.apple.pkg.GatekeeperConfigData.16U1720
com.apple.pkg.DevSDK_OSX1012
com.apple.pkg.GatekeeperConfigData.16U1655
com.apple.pkg.MAContent10_AssetPack_0536_DrummerClapsCowbell
com.apple.pkg.Core
com.apple.pkg.DevSDK_OSX1011
com.apple.pkg.CoreFP
com.apple.update.fullbundleupdate.18E226
com.apple.pkg.MAContent10_AssetPack_0357_EXS_BassAcousticUprightJazz
com.apple.pkg.GatekeeperConfigData.16U1642
com.apple.pkg.DevSDK_OSX1010
com.apple.pkg.MAContent10_AssetPack_0320_AppleLoopsChillwave1
com.apple.pkg.update.os.10.14.4.18E226
com.silabs.driver.CP210xVCPDriver
org.virtualbox.pkg.vboxkexts
com.premii.hnmac
com.oracle.jdk-11.0.2
com.tinyspeck.slackmacgap
com.apple.pkg.MobileAssets
org.virtualbox.pkg.virtualbox
com.cisco.pkg.anyconnect.vpn
com.github.osxfuse.pkg.Core
org.virtualbox.pkg.virtualboxcli
com.apple.pkg.iMovie_AppStore
com.carsten-mielke.RedQuits
org.adblockplus.adblockplussafarimac
com.apple.pkg.GarageBand_AppStore
com.apple.pkg.Pages8
com.mysql.launchd
com.apple.pkg.Pages7
com.mysql.mysql
com.TryBest.Paint
com.apple.pkg.Keynote9
com.mysql.prefpane
com.apple.pkg.Keynote8
com.apple.pkg.Numbers6
com.apple.pkg.Numbers5
com.apple.pkg.iMovie_AppStore
com.apple.pkg.GarageBand_AppStore
com.apple.pkg.Pages7
com.apple.pkg.Keynote8
com.apple.pkg.Numbers5

brew list

$ brew list                                                                                                 
adns                gstreamer           libtermkey          postgresql
adwaita-icon-theme      gtk+3               libtiff             py2cairo
arp-scan            gtk-vnc             libtool             py3cairo
atk             gts             libunistring            pygobject3
autoconf            guile               libusb              python
autogen             harfbuzz            libuv               python@2
automake            hicolor-icon-theme      libvirt             qrencode
bash-completion         htop                libvirt-glib            readline
bdw-gc              icu4c               libvorbis           redis
cairo               ilmbase             libvpx              ripgrep
ccat                imagemagick         libvterm            ruby
cfitsio             intltool            libxml2             ruby-build
check               isl             libyaml             screenresolution
coreutils           jasper              little-cms2         serve
dive                jemalloc            lsusb               shared-mime-info
exa             jpeg                lua             speex
faac                jq              luajit              spice-gtk
faad2               json-glib           lynx                spice-protocol
flac                kubernetes-cli          lz4             sqlite
fontconfig          lame                mpfr                taglib
freetype            libarchive          msgpack             telnet
fribidi             libassuan           ncurses             terminal-notifier
fzf             libcroco            neofetch            the_silver_searcher
gawk                libde265            netpbm              theora
gd              libepoxy            nettle              tree
gdbm                libevent            node                unbound
gdk-pixbuf          libffi              npth                unibilium
gettext             libgcrypt           oniguruma           usbredir
git             libgpg-error            openexr             vala
glib                libheif             openjpeg            vim
glib-networking         libidn2             openssl             virt-manager
gmp             libksba             opus                virt-viewer
gnu-getopt          libmms              orc             vte3
gnupg               libmpc              osinfo-db           watch
gnutls              libogg              osinfo-db-tools         webp
go              libomp              p11-kit             wget
gobject-introspection       libosinfo           pango               x264
graphite2           libpcap             parallel            x265
graphviz            libpng              pass                xz
gsettings-desktop-schemas   libpq               pcre                yajl
gst-libav           libpsl              pcre2               yarn
gst-plugins-bad         librsvg             perl                zsh
gst-plugins-base        libshout            pinentry            zsh-completions
gst-plugins-good        libsoup             pixman              zsh-syntax-highlighting
gst-plugins-ugly        libtasn1            pkg-config

Problem When running yarn build

$ yarn build                                                                                              
yarn run v1.17.3
$ yarn && sed -i 1,2d node_modules/mqtt/mqtt.js && sed -i 1,2d node_modules/mqtt/bin/pub.js&& sed -i 1,2d node_modules/mqtt/bin/sub.js&& next build
[1/4] 🔍  Resolving packages...
success Already up-to-date.
sed: 1: "node_modules/mqtt/mqtt.js": extra characters at the end of n command
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
odinuge commented 5 years ago

Thanks for the detailed bug report.

We do however not support Mac OS, so ill close this issue.