diff --git a/nodejs.json b/nodejs.json index b0ed23cb47..c454ef4352 100644 --- a/nodejs.json +++ b/nodejs.json @@ -12,12 +12,12 @@ "hash": "2888f2303bcaa35f05b3dce7cbfee58af77dcea6bed4b9ff549b181c65eb4565" } }, - "env_add_path": ["nodejs", "$persist_dir"], - "persist": "nodejs/node_modules", + "extract_dir": "nodejs", + "persist": [ "bin" ], + "env_add_path": [ ".", "bin" ], "post_install": " -# Set npm prefix to install module inside $persist_dir -Set-Content -Value \"prefix=$persist_dir\" -Path $persist_dir\\node_modules\\npm\\npmrc -npm update -g", +# Set npm prefix to install modules inside bin +Set-Content -Value \"prefix=$dir\\bin\" -Path $dir\\node_modules\\npm\\npmrc", "checkver": { "url": "https://nodejs.org/en/download/current/", "re": "Current version: v([\\d.]+)"