We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfd6124 commit 0a72c81Copy full SHA for 0a72c81
misc/tools.func
@@ -74,6 +74,15 @@ function setup_nodejs() {
74
fi
75
76
export NODE_OPTIONS="--max-old-space-size=4096"
77
+
78
+# Ensure valid working directory for npm (avoids uv_cwd error)
79
+ if [[ ! -d /opt ]]; then
80
+ mkdir -p /opt
81
+ fi
82
+ cd /opt || {Add commentMore actions
83
+ msg_error "Failed to set safe working directory before npm install"
84
+ exit 1
85
+ }
86
87
# Install global Node modules
88
if [[ -n "$NODE_MODULE" ]]; then
0 commit comments