Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm audit fix --force #4971

Open
zyxcambridge opened this issue Jan 16, 2024 · 1 comment
Open

npm audit fix --force #4971

zyxcambridge opened this issue Jan 16, 2024 · 1 comment
Labels
Bug Something isn't working Triage

Comments

@zyxcambridge
Copy link

Steps to reproduce the behavior

  1. Go to ...
  2. Select ...
  3. Scroll down to ...
  4. See error

Expected behavior

a(base) zhangyixin@zhangyixin focalboard % git remote -v
origin https://github.com/mattermost/focalboard.git (fetch)
origin https://github.com/mattermost/focalboard.git (push)
(base) zhangyixin@zhangyixin focalboard % EXCLUDE_ENTERPRISE="1"
(base) zhangyixin@zhangyixin focalboard % make prebuild
make
cd webapp; npm install
npm WARN skipping integrity check for git dependency ssh://git@github.com/mattermost/eslint-plugin-mattermost.git
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm WARN deprecated @types/react-select@5.0.1: This is a stub types definition. react-select provides its own type definitions, so you do not need this installed.
npm WARN deprecated @types/react-intl@3.0.0: This is a stub types definition. react-intl provides its own type definitions, so you do not need this installed.

added 1512 packages, and audited 1513 packages in 45s

183 packages are looking for funding
run npm fund for details

46 vulnerabilities (24 moderate, 17 high, 5 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.
cd mattermost-plugin/webapp; npm install
npm WARN skipping integrity check for git dependency ssh://git@github.com/enahum/redux-offline.git
npm WARN skipping integrity check for git dependency ssh://git@github.com/mattermost/eslint-plugin-mattermost.git
npm WARN deprecated @types/react-intl@3.0.0: This is a stub types definition. react-intl provides its own type definitions, so you do not need this installed.
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated remotedev-serialize@0.1.9: Package moved to @redux-devtools/serialize.
npm WARN deprecated redux-devtools-core@0.2.1: Package moved to @redux-devtools/app.
npm WARN deprecated redux-devtools-instrument@1.10.0: Package moved to @redux-devtools/instrument.
npm WARN deprecated uuid@3.2.1: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by uglify-js as of v3.13.0
npm WARN deprecated @babel/polyfill@7.10.4: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated rudder-sdk-js@1.0.14: 1.x.x versions of the SDK are deprecated. Please upgrade to the latest (2.x.x) version
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@3.8.3: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@3.21.1: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.

added 1888 packages, and audited 1889 packages in 2m

154 packages are looking for funding
run npm fund for details

41 vulnerabilities (1 low, 23 moderate, 13 high, 4 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.
cd webapp; npm run pack

focalboard@7.12.0 pack
cross-env NODE_ENV=production webpack --config webpack.prod.js

assets by chunk 8.47 MiB (auxiliary name: main)
assets by path static/*.woff2 177 KiB 7 assets
assets by status 7.76 MiB [big]
asset static/emoji_spirit.png 3.6 MiB [emitted] [from: static/emoji_spirit.png] [big] (auxiliary name: main)
asset static/comment.gif 1.14 MiB [emitted] [from: static/comment.gif] [big] (auxiliary name: main)
asset static/addProperty.gif 1020 KiB [emitted] [from: static/addProperty.gif] [big] (auxiliary name: main)
asset static/changeViews.gif 793 KiB [emitted] [from: static/changeViews.gif] [big] (auxiliary name: main)
+ 2 assets

  • 8 assets
    asset static/main.js 4.8 MiB [emitted] [minimized] [big] (name: main)
    asset static/boards-screenshots.png 196 KiB [emitted] [from: static/boards-screenshots.png] [copied]
    asset static/onboardingBg.jpg 96.6 KiB [emitted] [from: static/onboardingBg.jpg] [copied]
    asset static/app-bar-icon.png 17.9 KiB [emitted] [from: static/app-bar-icon.png] [copied]
    asset static/favicon.svg 2.36 KiB [emitted] [from: static/favicon.svg] [copied]
    asset index.html 499 bytes [emitted]
    orphan modules 3.17 MiB [orphan] 352 modules
    runtime modules 3.69 KiB 11 modules
    javascript modules 9.63 MiB
    modules by path ./node_modules/ 7.86 MiB 943 modules
    modules by path ./src/ 1.76 MiB 652 modules
    asset modules 5.44 KiB (javascript) 8.47 MiB (asset)
    modules by path ./ 882 bytes (javascript) 8.47 MiB (asset) 21 modules
    modules by mime type image/png 1.19 KiB 2 modules
    data:image/svg+xml;base64,PHN2ZyB3aWR0aD0i.. 320 bytes [built] [code generated]
    data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAw.. 3.08 KiB [built] [code generated]
    json modules 317 KiB
    ./i18n/ca.json 9.02 KiB [built] [code generated]
    ./i18n/de.json 27.5 KiB [built] [code generated]
    ./i18n/el.json 1.92 KiB [built] [code generated]
  • 14 modules

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
static/main.js (4.8 MiB)
static/addProperty.gif (1020 KiB)
static/changeViews.gif (793 KiB)
static/comment.gif (1.14 MiB)
static/copyLink.gif (633 KiB)
static/emoji_spirit.png (3.6 MiB)
static/share.gif (645 KiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (4.8 MiB)
static/main.js

WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

webpack 5.73.0 compiled with 3 warnings in 20936 ms
cd server; go build -ldflags '-Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/zhangyixin/anaconda3/lib -L/Users/zhangyixin/anaconda3/lib -X "github.com/mattermost/focalboard/server/model.BuildNumber=dev" -X "github.com/mattermost/focalboard/server/model.BuildDate=n/a" -X "github.com/mattermost/focalboard/server/model.BuildHash=6bd74643720ddaf854d8c9aba5e608345578d3db" -X "github.com/mattermost/focalboard/server/model.Edition=dev"' -tags 'json1 sqlite3' -o ../bin/focalboard-server ./main
go: downloading github.com/mattermost/mattermost-server/v6 v6.0.0-20230321114510-b61c096497ac
go: downloading github.com/spf13/viper v1.10.1
go: downloading github.com/gorilla/mux v1.8.0
go: downloading github.com/oklog/run v1.1.0
go: downloading github.com/mattermost/mattermost-plugin-api v0.1.1
go: downloading github.com/rivo/uniseg v0.4.3
go: downloading github.com/prometheus/client_golang v1.12.1
go: downloading github.com/wiggin77/merror v1.0.4
go: downloading github.com/rudderlabs/analytics-go v3.3.3+incompatible
go: downloading github.com/krolaw/zipstream v0.0.0-20180621105154-0a2661891f94
go: downloading github.com/stretchr/testify v1.8.1
go: downloading github.com/gorilla/websocket v1.5.0
go: downloading github.com/Masterminds/squirrel v1.5.3
go: downloading github.com/lib/pq v1.10.7
go: downloading github.com/mattermost/morph v1.0.5-0.20221115094356-4c18a75b1f5e
go: downloading github.com/mattn/go-sqlite3 v2.0.3+incompatible
go: downloading golang.org/x/crypto v0.5.0
go: downloading github.com/fsnotify/fsnotify v1.6.0
go: downloading github.com/magiconair/properties v1.8.6
go: downloading github.com/mitchellh/mapstructure v1.4.3
go: downloading github.com/spf13/afero v1.8.2
go: downloading github.com/spf13/cast v1.4.1
go: downloading github.com/spf13/jwalterweatherman v1.1.0
go: downloading github.com/subosito/gotenv v1.2.0
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.2.0
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/prometheus/common v0.33.0
go: downloading github.com/prometheus/procfs v0.7.3
go: downloading google.golang.org/protobuf v1.28.1
go: downloading github.com/segmentio/backo-go v1.0.1
go: downloading github.com/tidwall/gjson v1.14.4
go: downloading github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c
go: downloading github.com/lann/builder v0.0.0-20180802200727-47ae307949d0
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/fatih/color v1.13.0
go: downloading github.com/go-sql-driver/mysql v1.7.0
go: downloading modernc.org/sqlite v1.20.1
go: downloading github.com/blang/semver/v4 v4.0.0
go: downloading github.com/sirupsen/logrus v1.9.0
go: downloading golang.org/x/sys v0.5.0
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/pelletier/go-toml v1.9.5
go: downloading golang.org/x/text v0.7.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369
go: downloading github.com/blang/semver v3.5.1+incompatible
go: downloading github.com/mattermost/logr/v2 v2.0.16
go: downloading github.com/minio/minio-go/v7 v7.0.45
go: downloading github.com/yuin/goldmark v1.5.3
go: downloading github.com/dyatlov/go-opengraph/opengraph v0.0.0-20220524092352-606d7b1e5f8a
go: downloading github.com/francoispqt/gojay v1.2.13
go: downloading github.com/graph-gophers/graphql-go v1.5.1-0.20230110080634-edea822f558a
go: downloading github.com/mattermost/ldap v0.0.0-20201202150706-ee0e6284187d
go: downloading github.com/pborman/uuid v1.2.1
go: downloading github.com/tinylib/msgp v1.1.8
go: downloading github.com/vmihailenco/msgpack/v5 v5.3.5
go: downloading github.com/golang-migrate/migrate/v4 v4.15.2
go: downloading github.com/jmoiron/sqlx v1.3.5
go: downloading github.com/mattermost/squirrel v0.2.0
go: downloading golang.org/x/sync v0.1.0
go: downloading github.com/tidwall/match v1.1.1
go: downloading github.com/tidwall/pretty v1.2.1
go: downloading github.com/hashicorp/go-hclog v1.4.0
go: downloading github.com/hashicorp/go-plugin v1.4.8
go: downloading github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/mattn/go-isatty v0.0.17
go: downloading github.com/google/uuid v1.3.0
go: downloading github.com/json-iterator/go v1.1.12
go: downloading github.com/klauspost/compress v1.15.14
go: downloading github.com/minio/md5-simd v1.1.2
go: downloading github.com/minio/sha256-simd v1.0.0
go: downloading golang.org/x/net v0.7.0
go: downloading github.com/mattermost/go-i18n v1.11.1-0.20211013152124-5c415071e404
go: downloading github.com/wiggin77/srslog v1.0.1
go: downloading gopkg.in/natefinch/lumberjack.v2 v2.0.0
go: downloading github.com/philhofer/fwd v1.1.2
go: downloading github.com/go-asn1-ber/asn1-ber v1.5.4
go: downloading github.com/vmihailenco/tagparser/v2 v2.0.0
go: downloading github.com/rs/xid v1.4.0
go: downloading github.com/hashicorp/yamux v0.1.1
go: downloading github.com/mitchellh/go-testing-interface v1.14.1
go: downloading google.golang.org/grpc v1.51.0
go: downloading github.com/klauspost/cpuid/v2 v2.2.3
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading google.golang.org/genproto v0.0.0-20230104163317-caabf589fcbf
go: downloading modernc.org/libc v1.22.2
go: downloading modernc.org/mathutil v1.5.0
go: downloading modernc.org/memory v1.5.0
go: downloading github.com/dustin/go-humanize v1.0.0
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20220927061507-ef77025ab5aa

github.com/mattermost/focalboard/server/main

flag provided but not defined: -Wl,-pie
usage: link [options] main.o
-B note
add an ELF NT_GNU_BUILD_ID note when using ELF
-E entry
set entry symbol name
-H type
set header type
-I linker
use linker as ELF dynamic linker
-L directory
add specified directory to library path
-R quantum
set address rounding quantum (default -1)
-T int
set the start address of text symbols (default -1)
-V print version and exit
-X definition
add string value definition of the form importpath.name=value
-a no-op (deprecated)
-asan
enable ASan interface
-aslr
enable ASLR for buildmode=c-shared on windows (default true)
-benchmark string
set to 'mem' or 'cpu' to enable phase benchmarking
-benchmarkprofile base
emit phase profiles to base_phase.{cpu,mem}prof
-buildid id
record id as Go toolchain build id
-buildmode mode
set build mode
-c dump call graph
-capturehostobjs string
capture host object files loaded during internal linking to specified dir
-compressdwarf
compress DWARF if possible (default true)
-cpuprofile file
write cpu profile to file
-d disable dynamic executable
-debugnosplit
dump nosplit call graph
-debugtextsize int
debug text section max size
-debugtramp int
debug trampolines
-dumpdep
dump symbol dependency graph
-extar string
archive program for buildmode=c-archive
-extld linker
use linker when linking in external mode
-extldflags flags
pass flags to external linker
-f ignore version mismatch
-g disable go package data checks
-h halt on error
-importcfg file
read import configuration from file
-installsuffix suffix
set package directory suffix
-k symbol
set field tracking symbol
-libgcc string
compiler support lib for internal linking; use "none" to disable
-linkmode mode
set link mode
-linkshared
link against installed Go shared libraries
-memprofile file
write memory profile to file
-memprofilerate rate
set runtime.MemProfileRate to rate
-msan
enable MSan interface
-n dump symbol table
-o file
write output to file
-pluginpath string
full path name for plugin
-pruneweakmap
prune weak mapinit refs (default true)
-r path
set the ELF dynamic linker search path to dir1:dir2:...
-race
enable race detector
-s disable symbol table
-strictdups int
sanity check duplicate symbol contents during object file reading (1=warn 2=err).
-tmpdir directory
use directory for temporary files
-v print link trace
-w disable DWARF generation
make: *** [server] Error 1
(base) zhangyixin@zhangyixin focalboard % make prebuild
make
cd webapp; npm install

up to date, audited 1513 packages in 12s

183 packages are looking for funding
run npm fund for details

46 vulnerabilities (24 moderate, 17 high, 5 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.
cd mattermost-plugin/webapp; npm install

up to date, audited 1889 packages in 6s

154 packages are looking for funding
run npm fund for details

41 vulnerabilities (1 low, 23 moderate, 13 high, 4 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.
cd webapp; npm run pack

focalboard@7.12.0 pack
cross-env NODE_ENV=production webpack --config webpack.prod.js

assets by chunk 8.47 MiB (auxiliary name: main)
assets by path static/*.woff2 177 KiB 7 assets
assets by status 7.76 MiB [big]
asset static/emoji_spirit.png 3.6 MiB [compared for emit] [from: static/emoji_spirit.png] [big] (auxiliary name: main)
asset static/comment.gif 1.14 MiB [compared for emit] [from: static/comment.gif] [big] (auxiliary name: main)
asset static/addProperty.gif 1020 KiB [compared for emit] [from: static/addProperty.gif] [big] (auxiliary name: main)
asset static/changeViews.gif 793 KiB [compared for emit] [from: static/changeViews.gif] [big] (auxiliary name: main)
+ 2 assets

  • 8 assets
    asset static/main.js 4.8 MiB [compared for emit] [minimized] [big] (name: main)
    asset static/boards-screenshots.png 196 KiB [compared for emit] [from: static/boards-screenshots.png] [copied]
    asset static/onboardingBg.jpg 96.6 KiB [compared for emit] [from: static/onboardingBg.jpg] [copied]
    asset static/app-bar-icon.png 17.9 KiB [compared for emit] [from: static/app-bar-icon.png] [copied]
    asset static/favicon.svg 2.36 KiB [compared for emit] [from: static/favicon.svg] [copied]
    asset index.html 499 bytes [compared for emit]
    orphan modules 3.17 MiB [orphan] 352 modules
    runtime modules 3.69 KiB 11 modules
    javascript modules 9.63 MiB
    modules by path ./node_modules/ 7.86 MiB 943 modules
    modules by path ./src/ 1.76 MiB 652 modules
    asset modules 5.44 KiB (javascript) 8.47 MiB (asset)
    modules by path ./ 882 bytes (javascript) 8.47 MiB (asset) 21 modules
    modules by mime type image/png 1.19 KiB 2 modules
    data:image/svg+xml;base64,PHN2ZyB3aWR0aD0i.. 320 bytes [built] [code generated]
    data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAw.. 3.08 KiB [built] [code generated]
    json modules 317 KiB
    ./i18n/ca.json 9.02 KiB [built] [code generated]
    ./i18n/de.json 27.5 KiB [built] [code generated]
    ./i18n/el.json 1.92 KiB [built] [code generated]
  • 14 modules

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
static/main.js (4.8 MiB)
static/addProperty.gif (1020 KiB)
static/changeViews.gif (793 KiB)
static/comment.gif (1.14 MiB)
static/copyLink.gif (633 KiB)
static/emoji_spirit.png (3.6 MiB)
static/share.gif (645 KiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (4.8 MiB)
static/main.js

WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

webpack 5.73.0 compiled with 3 warnings in 20971 ms
cd server; go build -ldflags '-Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/zhangyixin/anaconda3/lib -L/Users/zhangyixin/anaconda3/lib -X "github.com/mattermost/focalboard/server/model.BuildNumber=dev" -X "github.com/mattermost/focalboard/server/model.BuildDate=n/a" -X "github.com/mattermost/focalboard/server/model.BuildHash=6bd74643720ddaf854d8c9aba5e608345578d3db" -X "github.com/mattermost/focalboard/server/model.Edition=dev"' -tags 'json1 sqlite3' -o ../bin/focalboard-server ./main

github.com/mattermost/focalboard/server/main

flag provided but not defined: -Wl,-pie
usage: link [options] main.o
-B note
add an ELF NT_GNU_BUILD_ID note when using ELF
-E entry
set entry symbol name
-H type
set header type
-I linker
use linker as ELF dynamic linker
-L directory
add specified directory to library path
-R quantum
set address rounding quantum (default -1)
-T int
set the start address of text symbols (default -1)
-V print version and exit
-X definition
add string value definition of the form importpath.name=value
-a no-op (deprecated)
-asan
enable ASan interface
-aslr
enable ASLR for buildmode=c-shared on windows (default true)
-benchmark string
set to 'mem' or 'cpu' to enable phase benchmarking
-benchmarkprofile base
emit phase profiles to base_phase.{cpu,mem}prof
-buildid id
record id as Go toolchain build id
-buildmode mode
set build mode
-c dump call graph
-capturehostobjs string
capture host object files loaded during internal linking to specified dir
-compressdwarf
compress DWARF if possible (default true)
-cpuprofile file
write cpu profile to file
-d disable dynamic executable
-debugnosplit
dump nosplit call graph
-debugtextsize int
debug text section max size
-debugtramp int
debug trampolines
-dumpdep
dump symbol dependency graph
-extar string
archive program for buildmode=c-archive
-extld linker
use linker when linking in external mode
-extldflags flags
pass flags to external linker
-f ignore version mismatch
-g disable go package data checks
-h halt on error
-importcfg file
read import configuration from file
-installsuffix suffix
set package directory suffix
-k symbol
set field tracking symbol
-libgcc string
compiler support lib for internal linking; use "none" to disable
-linkmode mode
set link mode
-linkshared
link against installed Go shared libraries
-memprofile file
write memory profile to file
-memprofilerate rate
set runtime.MemProfileRate to rate
-msan
enable MSan interface
-n dump symbol table
-o file
write output to file
-pluginpath string
full path name for plugin
-pruneweakmap
prune weak mapinit refs (default true)
-r path
set the ELF dynamic linker search path to dir1:dir2:...
-race
enable race detector
-s disable symbol table
-strictdups int
sanity check duplicate symbol contents during object file reading (1=warn 2=err).
-tmpdir directory
use directory for temporary files
-v print link trace
-w disable DWARF generation
make: *** [server] Error 1
(base) zhangyixin@zhangyixin focalboard % make prebuild
make
(base) zhangyixin@zhangyixin focalboard % make prebuild
cd webapp; npm install

up to date, audited 1513 packages in 2s

183 packages are looking for funding
run npm fund for details

46 vulnerabilities (24 moderate, 17 high, 5 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.
cd mattermost-plugin/webapp; npm install

up to date, audited 1889 packages in 2s

154 packages are looking for funding
run npm fund for details

41 vulnerabilities (1 low, 23 moderate, 13 high, 4 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.
(base) zhangyixin@zhangyixin focalboard % npm audit fix --force
npm WARN using --force Recommended protections disabled.
npm ERR! code ENOLOCK
npm ERR! audit This command requires an existing lockfile.
npm ERR! audit Try creating one first with: npm i --package-lock-only
npm ERR! audit Original error: loadVirtual requires existing shrinkwrap file

npm ERR! A complete log of this run can be found in: /Users/zhangyixin/.npm/_logs/2024-01-16T12_30_55_640Z-debug-0.log
(base) zhangyixin@zhangyixin focalboard % node -v
v21.5.0
(base) zhangyixin@zhangyixin focalboard % npm audit fix --force
npm WARN using --force Recommended protections disabled.
npm ERR! code ENOLOCK
npm ERR! audit This command requires an existing lockfile.
npm ERR! audit Try creating one first with: npm i --package-lock-only
npm ERR! audit Original error: loadVirtual requires existing shrinkwrap file

npm ERR! A complete log of this run can be found in: /Users/zhangyixin/.npm/_logs/2024-01-16T12_31_09_985Z-debug-0.log
(base) zhangyixin@zhangyixin focalboard % yarn install
yarn install v1.22.19
warning package.json: No license field
info No lockfile found.
warning No license field
[1/4] 🔍 Resolving packages...
⠁ (node:13765) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
✨ Done in 24.40s.
(base) zhangyixin@zhangyixin focalboard % make prebuild
cd webapp; npm install

up to date, audited 1513 packages in 3s

183 packages are looking for funding
run npm fund for details

46 vulnerabilities (24 moderate, 17 high, 5 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.
cd mattermost-plugin/webapp; npm install

up to date, audited 1889 packages in 11s

154 packages are looking for funding
run npm fund for details

41 vulnerabilities (1 low, 23 moderate, 13 high, 4 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.
(base) zhangyixin@zhangyixin focalboard %
A clear and concise description of what you expected to happen.

Screenshots (optional)

If applicable, add screenshots or a screen recording to elaborate on the problem.

Edition and Platform

  • Edition: Personal Desktop / Personal Server / Mattermost Boards (plugin)
  • Version: [e.g. v0.15.0]
  • Browser and OS: [e.g. Chrome on Mac, Edge on Windows]

Additional context (optional)

Add any other context about the problem here, and any notes about the severity:

  • Sev 1: Affects critical functionality without a workaround
  • Sev 2: Affects major functionality with a difficult or non-obvious workaround
  • Sev 3: Affects minor, non-critical functionality
@zyxcambridge zyxcambridge added Bug Something isn't working Triage labels Jan 16, 2024
@zyxcambridge
Copy link
Author

0 verbose cli /opt/homebrew/Cellar/node@16/16.20.2/bin/node /opt/homebrew/bin/npm
1 info using npm@8.19.4
2 info using node@v16.20.2
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/opt/homebrew/Cellar/node@16/16.20.2/lib/node_modules/npm/npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 1ms
9 timing config:load:project Completed in 2ms
10 timing config:load:file:/Users/zhangyixin/.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:/opt/homebrew/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:validate Completed in 0ms
15 timing config:load:credentials Completed in 0ms
16 timing config:load:setEnvs Completed in 1ms
17 timing config:load Completed in 8ms
18 timing npm:load:configload Completed in 8ms
19 timing npm:load:mkdirpcache Completed in 0ms
20 timing npm:load:mkdirplogs Completed in 1ms
21 verbose title npm audit fix
22 verbose argv "audit" "fix" "--force"
23 timing npm:load:setTitle Completed in 4ms
24 timing config:load:flatten Completed in 1ms
25 timing npm:load:display Completed in 2ms
26 verbose logfile logs-max:10 dir:/Users/zhangyixin/.npm/_logs
27 verbose logfile /Users/zhangyixin/.npm/_logs/2024-01-16T12_40_55_210Z-debug-0.log
28 timing npm:load:logFile Completed in 3ms
29 timing npm:load:timers Completed in 0ms
30 timing npm:load:configScope Completed in 0ms
31 warn using --force Recommended protections disabled.
32 timing npm:load Completed in 18ms
33 timing arborist:ctor Completed in 0ms
34 silly logfile start cleaning logs, removing 1 files
35 timing command:audit Completed in 5ms
36 verbose stack Error: loadVirtual requires existing shrinkwrap file
36 verbose stack at Arborist.loadVirtual (/opt/homebrew/Cellar/node@16/16.20.2/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/load-virtual.js:63:18)
36 verbose stack at async Arborist.audit (/opt/homebrew/Cellar/node@16/16.20.2/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/audit.js:25:18)
36 verbose stack at async Audit.auditAdvisories (/opt/homebrew/Cellar/node@16/16.20.2/lib/node_modules/npm/lib/commands/audit.js:390:5)
36 verbose stack at async Audit.exec (/opt/homebrew/Cellar/node@16/16.20.2/lib/node_modules/npm/lib/commands/audit.js:374:7)
36 verbose stack at async module.exports (/opt/homebrew/Cellar/node@16/16.20.2/lib/node_modules/npm/lib/cli.js:78:5)
37 verbose cwd /Users/zhangyixin/Desktop/focalboard
38 verbose Darwin 23.2.0
39 verbose node v16.20.2
40 verbose npm v8.19.4
41 error code ENOLOCK
42 error audit This command requires an existing lockfile.
43 error audit Try creating one first with: npm i --package-lock-only
44 error audit Original error: loadVirtual requires existing shrinkwrap file
45 verbose exit 1
46 timing npm Completed in 62ms
47 verbose unfinished npm timer audit 1705408855265
48 verbose code 1
49 error A complete log of this run can be found in:
49 error /Users/zhangyixin/.npm/_logs/2024-01-16T12_40_55_210Z-debug-0.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Triage
Projects
None yet
Development

No branches or pull requests

1 participant