mirror of https://github.com/grpc/grpc-node.git
Allow npm install without root
This commit is contained in:
parent
f133463831
commit
0cf704143c
|
@ -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'], () => {
|
||||
|
|
|
@ -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'});
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
@ -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'});
|
||||
});
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue