Skip to content
Permalink
Browse files

Update latest npm path

  • Loading branch information
keicoon committed Jul 16, 2018
1 parent 69bae55 commit de9e889b84d7904425775ca80b6c0e9815b85eba
Showing with 1 addition and 1 deletion.
  1. +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]

0 comments on commit de9e889

Please sign in to comment.
You can’t perform that action at this time.