Skip to content

Commit

Permalink
Update latest npm path
Browse files Browse the repository at this point in the history
  • Loading branch information
keicoon committed Jul 16, 2018
1 parent 69bae55 commit de9e889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/Content/Scripts/demos/lib/npm.js
Expand Up @@ -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]
Expand Down

0 comments on commit de9e889

Please sign in to comment.