Skip to content
This repository was archived by the owner on Jan 5, 2025. It is now read-only.

Commit 3ba3b0c

Browse files
committed
Merge pull request #10 from ilyar/fix/master/issue8
#8 Fix error run npm on win32 platform
2 parents f6ec88a + 2a14fa2 commit 3ba3b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function bowerList(options, config) {
8282
function npmInstallAll(list, options, config) {
8383
var logger = config.logger || new Logger(),
8484

85-
npmBin = process.env.NPM || 'npm',
85+
npmBin = process.env.NPM || (process.platform === 'win32' ? 'npm.cmd' : 'npm'),
8686
npmArgs = ['install', options['npm-development'] ? '--development' : '--production'],
8787
promise = Q.resolve();
8888

0 commit comments

Comments
 (0)