Permalink
Browse files
Update latest npm path
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
Examples/Content/Scripts/demos/lib/npm.js
|
@@ -5,7 +5,7 @@ async function npm(what) { |
|
|
if (m) return m |
|
|
|
|
|
function locate_npm() { |
|
|
let cmd = `-e console.log([...process.argv[0].replace(/\\\\/g,'/').split('/').slice(0,-1),'node_modules/npm/cli.js'].join('/'))` |
|
|
let cmd = `-e console.log([...process.argv[0].replace(/\\\\/g,'/').split('/').slice(0,-1),'node_modules/npm/bin/npm-cli.js'].join('/'))` |
|
|
let p = JavascriptProcess.Create('node', cmd, false, true, true, 0, '', true) |
|
|
p.Wait() |
|
|
return p.ReadFromPipe().split('\n')[0] |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.