ProgressHandle handle = ProgressHandleFactory.createHandle(
NbBundle.getMessage( NodeJSProject.class, "RUNNING_NPM_INSTALL", getName() ) ); //NOI18N
handle.start();
try {
String result = Npm.getDefault().run( FileUtil.toFile( getProjectDirectory() ), "install" ); //NOI18N
InputOutput io = IOProvider.getDefault().getIO( getName() + " - npm install", true ); //NOI18N
io.select();
io.getOut().print( result );
io.getOut().close();
checkTask.schedule( 3000 );
} finally {
handle.finish();
}
}