Allow npm install without root

This commit is contained in:
Matt Kwong 2017-09-19 16:06:20 -07:00
parent f133463831
commit 0cf704143c
4 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ const baseDir = path.resolve(healthCheckDir, '..', '..');
const testDir = path.resolve(healthCheckDir, 'test');
gulp.task('health-check.install', 'Install health check dependencies', () => {
return execa('npm', ['install'], {cwd: healthCheckDir, stdio: 'inherit'});
return execa('npm', ['install', '--unsafe-perm'], {cwd: healthCheckDir, stdio: 'inherit'});
});
gulp.task('health-check.link.add', 'Link local copy of grpc', ['health-check.install'], () => {

View File

@ -81,7 +81,7 @@ function makeCompileFn(globs) {
}
gulp.task('js.core.install', 'Install native core dependencies', () => {
return execa('npm', ['install'], {cwd: jsCoreDir, stdio: 'inherit'});
return execa('npm', ['install', '--unsafe-perm'], {cwd: jsCoreDir, stdio: 'inherit'});
});
/**

View File

@ -17,7 +17,7 @@ const pkg = require('./package');
const jshintConfig = pkg.jshintConfig;
gulp.task('native.core.install', 'Install native core dependencies', () => {
return execa('npm', ['install', '--build-from-source'],
return execa('npm', ['install', '--build-from-source', '--unsafe-perm'],
{cwd: nativeCoreDir, stdio: 'inherit'});
});

View File

@ -42,7 +42,7 @@ do
set -ex
# Install dependencies and link packages together.
npm install
npm install --unsafe-perm
./node_modules/.bin/gulp setup
# Rebuild libraries and run tests.