on master help sign in
try to resolve npm permissiveness issue
34f662fEvan Czaplicki
installers/npm/download.js+1−1
@@ -23,7 +23,7 @@ module.exports = function(callback)
23 reportDownload(version, url);
23 reportDownload(version, url);
24
24
25 // figure out where to put the binary (calls path.resolve() to get path separators right on Windows)
25 // figure out where to put the binary (calls path.resolve() to get path separators right on Windows)
26− var binaryPath = path.resolve(__dirname, package.bin) + (process.platform === 'win32' ? '.exe' : '');
26+ var binaryPath = path.resolve(__dirname, package.bin.elm) + (process.platform === 'win32' ? '.exe' : '');
27
27
28 // set up handler for request failure
28 // set up handler for request failure
29 function reportDownloadFailure(error)
29 function reportDownloadFailure(error)
installers/npm/package.json+1−1
@@ -35,7 +35,7 @@
35 "install",
35 "install",
36 "installer"
36 "installer"
37 ],
37 ],
38− "bin": "bin/elm",
38+ "bin": { "elm": "bin/elm" },
39 "dependencies": {
39 "dependencies": {
40 "request": "^2.88.0"
40 "request": "^2.88.0"
41 }
41 }