cognova 0.2.15 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/bf0f9039-944a-4581-ac5f-cf72fe2c7dae.json +1 -0
- package/.output/server/chunks/build/styles.mjs +2 -2
- package/.output/server/chunks/nitro/nitro.mjs +221 -221
- package/.output/server/package.json +1 -1
- package/dist/cli/index.js +11 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/builds/meta/7c42ae85-1cae-45f0-8cb9-ad3a10165c2c.json +0 -1
package/dist/cli/index.js
CHANGED
|
@@ -2149,6 +2149,8 @@ module.exports = {
|
|
|
2149
2149
|
name: 'cognova',
|
|
2150
2150
|
script: '.output/server/index.mjs',
|
|
2151
2151
|
cwd: '${config.installDir}',
|
|
2152
|
+
// Use 'node' interpreter when NVM is detected to avoid path parsing issues
|
|
2153
|
+
interpreter: 'node',
|
|
2152
2154
|
node_args: '--max-old-space-size=4096',
|
|
2153
2155
|
env: {
|
|
2154
2156
|
...dotenv,
|
|
@@ -2206,7 +2208,15 @@ async function setupAndStart(config) {
|
|
|
2206
2208
|
s.stop("Cognova is running");
|
|
2207
2209
|
} catch (err) {
|
|
2208
2210
|
s.stop("Failed to start");
|
|
2209
|
-
|
|
2211
|
+
const errMsg = String(err);
|
|
2212
|
+
if (errMsg.includes("nvm") && errMsg.includes("not found")) {
|
|
2213
|
+
R2.error("PM2 + NVM compatibility issue detected");
|
|
2214
|
+
R2.info("Try: pm2 delete cognova && pm2 start ecosystem.config.cjs");
|
|
2215
|
+
R2.info(`Working directory: ${config.installDir}`);
|
|
2216
|
+
} else {
|
|
2217
|
+
R2.error(`PM2 error: ${err}`);
|
|
2218
|
+
}
|
|
2219
|
+
throw err;
|
|
2210
2220
|
}
|
|
2211
2221
|
}
|
|
2212
2222
|
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"7c42ae85-1cae-45f0-8cb9-ad3a10165c2c","timestamp":1771874253739,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|