pinokiod 6.0.108 → 6.0.109
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/kernel/bin/node.js +4 -5
- package/package.json +1 -1
package/kernel/bin/node.js
CHANGED
|
@@ -2,16 +2,16 @@ const fs = require('fs')
|
|
|
2
2
|
const fetch = require('cross-fetch')
|
|
3
3
|
const { rimraf } = require('rimraf')
|
|
4
4
|
const decompress = require('decompress');
|
|
5
|
+
const NODE_VERSION = "22.21.1"
|
|
6
|
+
|
|
5
7
|
class Node {
|
|
6
8
|
cmd() {
|
|
7
|
-
|
|
8
|
-
return "nodejs=25.7.0 pnpm"
|
|
9
|
+
return `nodejs=${NODE_VERSION} pnpm`
|
|
9
10
|
}
|
|
10
11
|
async install(req, ondata) {
|
|
11
12
|
await this.kernel.bin.exec({
|
|
12
13
|
message: [
|
|
13
14
|
"conda clean -y --all",
|
|
14
|
-
//"conda install -y nodejs=20.17.0 pnpm -c conda-forge"
|
|
15
15
|
`conda install -y -c conda-forge ${this.cmd()}`
|
|
16
16
|
]
|
|
17
17
|
}, ondata)
|
|
@@ -19,8 +19,7 @@ class Node {
|
|
|
19
19
|
async installed() {
|
|
20
20
|
if (this.kernel.bin.installed.conda && this.kernel.bin.installed.conda_versions) {
|
|
21
21
|
let version = this.kernel.bin.installed.conda_versions.nodejs
|
|
22
|
-
|
|
23
|
-
if (version !== "25.7.0") {
|
|
22
|
+
if (version !== NODE_VERSION) {
|
|
24
23
|
return false
|
|
25
24
|
}
|
|
26
25
|
}
|